From 7e73ae9087203b767666a6e076b4c856ba1855ac Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 7 May 2024 09:52:03 +0200 Subject: [PATCH] MOBILE-4470 policy: Fix scroll button displayed when it shouldn't --- src/core/features/policy/pages/site-policy/site-policy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/features/policy/pages/site-policy/site-policy.ts b/src/core/features/policy/pages/site-policy/site-policy.ts index afe259d68..fd5d18c04 100644 --- a/src/core/features/policy/pages/site-policy/site-policy.ts +++ b/src/core/features/policy/pages/site-policy/site-policy.ts @@ -342,7 +342,7 @@ export class CorePolicySitePolicyPage implements OnInit, OnDestroy { 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. } /**