MOBILE-4470 policy: Fix scroll button displayed when it shouldn't
This commit is contained in:
parent
c2a16b66a2
commit
7e73ae9087
@ -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.
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user