mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
Merge pull request #15345 from atom/ns-round-max-scroll-top
Round return values of getMaxScrollTop, getScrollHeight
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user