mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 09:18:24 -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 = () => {
|
this.maintainHeight = () => {
|
||||||
|
|
||||||
let height = Math.min(
|
let height = Math.min(
|
||||||
$(window).height() - this.topOffset + $('html, body').scrollTop() + 5,
|
$(window).height() - this.topOffset + $('html, body').scrollTop(),
|
||||||
this.nativeHeight
|
this.nativeHeight
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -53,4 +53,5 @@
|
|||||||
|
|
||||||
.shim {
|
.shim {
|
||||||
display: block;
|
display: block;
|
||||||
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user