Editor.renderedLines' css width is set to 100% when editor.maxScreenLineLength() is less than Editor.scrollView's width

This commit is contained in:
Corey Johnson
2012-07-16 09:14:33 -07:00
parent 23b42faa1d
commit e089b74867
4 changed files with 15 additions and 9 deletions

View File

@@ -657,7 +657,7 @@ class Editor extends View
if width > @scrollView.width()
@renderedLines.width(width)
else
@renderedLines.width(@scrollView.width())
@renderedLines.width("inherit")
handleScrollHeightChange: ->
scrollHeight = @lineHeight * @screenLineCount()