diff --git a/app/assets/javascripts/fullscreenTable.js b/app/assets/javascripts/fullscreenTable.js index 5d4080b2f..27ff52636 100644 --- a/app/assets/javascripts/fullscreenTable.js +++ b/app/assets/javascripts/fullscreenTable.js @@ -62,7 +62,7 @@ this.maintainHeight = () => { let height = Math.min( - $(window).height() - this.topOffset + $('html, body').scrollTop() + 5, + $(window).height() - this.topOffset + $('html, body').scrollTop(), this.nativeHeight ); diff --git a/app/assets/stylesheets/components/stick-at-top-when-scrolling.scss b/app/assets/stylesheets/components/stick-at-top-when-scrolling.scss index cee9ffd16..77d076ff1 100644 --- a/app/assets/stylesheets/components/stick-at-top-when-scrolling.scss +++ b/app/assets/stylesheets/components/stick-at-top-when-scrolling.scss @@ -53,4 +53,5 @@ .shim { display: block; + margin-bottom: 5px; }