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