MOBILE-4470 policy: Fix scroll button displayed when it shouldn't

main
Dani Palou 2024-05-07 09:52:03 +02:00
parent c2a16b66a2
commit 7e73ae9087
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ export class CorePolicySitePolicyPage implements OnInit, OnDestroy {
const scrollElement = await this.content?.getScrollElement(); const scrollElement = await this.content?.getScrollElement();
this.hasScroll = !!scrollElement && scrollElement.scrollHeight > scrollElement.clientHeight; this.hasScroll = !!scrollElement && scrollElement.scrollHeight > scrollElement.clientHeight + 2; // Add 2px of error margin.
} }
/** /**