mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-05 00:48:30 -04:00
Fix bug horizontal scrollbar being pushed off page
We weren’t calculating the height quite right; we were trying to compensate for something that should have been compensated for in the `stick-at-top-when-scrolling` code. Add the 5px to the shim there is required because we’re adding it to the element that the shim in replacing.
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
@@ -53,4 +53,5 @@
|
||||
|
||||
.shim {
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user