mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Make all lines visible if no external client height is assigned
This commit is contained in:
@@ -58,7 +58,7 @@ class TextEditorPresenter
|
||||
|
||||
getEndRow: ->
|
||||
startRow = @getStartRow()
|
||||
visibleLinesCount = Math.ceil(@clientHeight / @lineHeight) + 1
|
||||
visibleLinesCount = Math.ceil(@getClientHeight() / @lineHeight) + 1
|
||||
overdrawMargin = @lineOverdrawMargin + Math.min(@lineOverdrawMargin, startRow)
|
||||
endRow = startRow + visibleLinesCount + overdrawMargin
|
||||
Math.min(@model.getScreenLineCount(), endRow)
|
||||
@@ -74,6 +74,9 @@ class TextEditorPresenter
|
||||
setClientHeight: (@clientHeight) ->
|
||||
@updateLinesState()
|
||||
|
||||
getClientHeight: ->
|
||||
@clientHeight ? @model.getScreenLineCount() * @lineHeight
|
||||
|
||||
setClientWidth: (@clientWidth) ->
|
||||
@updateLinesState()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user