mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
Round return values of getMaxScrollTop/Left
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