mirror of
https://github.com/atom/atom.git
synced 2026-01-26 15:28:27 -05:00
Revert refactoring to make the diff shorter
This commit is contained in:
@@ -741,21 +741,23 @@ class TextEditorPresenter
|
||||
clientHeightWithoutHorizontalScrollbar = clientHeightWithHorizontalScrollbar - @measuredHorizontalScrollbarHeight
|
||||
|
||||
horizontalScrollbarVisible =
|
||||
not @model.isMini() and
|
||||
(@contentWidth > clientWidthWithVerticalScrollbar or
|
||||
@contentWidth > clientWidthWithoutVerticalScrollbar and @contentHeight > clientHeightWithHorizontalScrollbar)
|
||||
|
||||
verticalScrollbarVisible =
|
||||
not @model.isMini() and
|
||||
(@contentHeight > clientHeightWithHorizontalScrollbar or
|
||||
@contentHeight > clientHeightWithoutHorizontalScrollbar and @contentWidth > clientWidthWithVerticalScrollbar)
|
||||
|
||||
horizontalScrollbarHeight =
|
||||
if horizontalScrollbarVisible and not @model.isMini()
|
||||
if horizontalScrollbarVisible
|
||||
@measuredHorizontalScrollbarHeight
|
||||
else
|
||||
0
|
||||
|
||||
verticalScrollbarWidth =
|
||||
if verticalScrollbarVisible and not @model.isMini()
|
||||
if verticalScrollbarVisible
|
||||
@measuredVerticalScrollbarWidth
|
||||
else
|
||||
0
|
||||
|
||||
Reference in New Issue
Block a user