mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Don't obscure last character of long lines with vertical scrollbar
This entailed quite a few changes to dial in scrollbars. The scrollbars are now adjusted in size to account for the width of the opposite scrollbar. If the width or height are not explicitly constrained and we are scrollable in the opposite direction that is constrained, we account for the width of the opposite scrollbar in assigning a natural height or width based on the content.
This commit is contained in:
@@ -1895,8 +1895,12 @@ class Editor extends Model
|
||||
|
||||
verticallyScrollable: -> @displayBuffer.verticallyScrollable()
|
||||
|
||||
getHorizontalScrollbarHeight: -> @displayBuffer.getHorizontalScrollbarHeight()
|
||||
setHorizontalScrollbarHeight: (height) -> @displayBuffer.setHorizontalScrollbarHeight(height)
|
||||
|
||||
getVerticalScrollbarWidth: -> @displayBuffer.getVerticalScrollbarWidth()
|
||||
setVerticalScrollbarWidth: (width) -> @displayBuffer.setVerticalScrollbarWidth(width)
|
||||
|
||||
# Deprecated: Call {::joinLines} instead.
|
||||
joinLine: ->
|
||||
deprecate("Use Editor::joinLines() instead")
|
||||
|
||||
Reference in New Issue
Block a user