Use computed clientWidth instead of contentFrameWidth as max scrollWidth

This commit is contained in:
Nathan Sobo
2015-02-11 11:47:18 -07:00
parent f1bd4b2c83
commit e4168d70b7
2 changed files with 8 additions and 8 deletions

View File

@@ -344,7 +344,7 @@ class TextEditorPresenter
Math.min(@model.getScreenLineCount(), endRow)
computeScrollWidth: ->
Math.max(@computeContentWidth(), @contentFrameWidth)
Math.max(@computeContentWidth(), @computeClientWidth())
computeScrollHeight: ->
contentHeight = @computeContentHeight()