Merge pull request #15345 from atom/ns-round-max-scroll-top

Round return values of getMaxScrollTop, getScrollHeight
This commit is contained in:
Nathan Sobo
2017-08-16 17:24:09 -06:00
committed by GitHub
2 changed files with 19 additions and 2 deletions

View File

@@ -2728,7 +2728,7 @@ class TextEditorComponent {
}
getMaxScrollTop () {
return Math.max(0, this.getScrollHeight() - this.getScrollContainerClientHeight())
return Math.round(Math.max(0, this.getScrollHeight() - this.getScrollContainerClientHeight()))
}
getScrollBottom () {
@@ -2756,7 +2756,7 @@ class TextEditorComponent {
}
getMaxScrollLeft () {
return Math.max(0, this.getScrollWidth() - this.getScrollContainerClientWidth())
return Math.round(Math.max(0, this.getScrollWidth() - this.getScrollContainerClientWidth()))
}
getScrollRight () {