Merge pull request #1721 from alphagov/5px-bug

Fix bug horizontal scrollbar being pushed off page
This commit is contained in:
Chris Hill-Scott
2017-12-20 15:50:40 +00:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -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
);

View File

@@ -53,4 +53,5 @@
.shim {
display: block;
margin-bottom: 5px;
}