From ff106a00710e1cf5e3b0173810348c1ee3fe4caa Mon Sep 17 00:00:00 2001 From: Alex MacLeod Date: Wed, 3 Feb 2021 15:06:30 -0500 Subject: [PATCH] Fix bottom scroll indicator placement in Safari --- addon/components/-private/scroll-indicators/component.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addon/components/-private/scroll-indicators/component.js b/addon/components/-private/scroll-indicators/component.js index 2418ebc9c..fec80f74a 100644 --- a/addon/components/-private/scroll-indicators/component.js +++ b/addon/components/-private/scroll-indicators/component.js @@ -226,6 +226,9 @@ export default Component.extend({ el.clientHeight - scale * (footerCellY - overflowRect.y), el.clientHeight ); + + // can be negative if sticky footers don't work in browser (e.g. Safari) + visibleFooterHeight = Math.max(visibleFooterHeight, 0); } let footerRatio;