mirror of
https://github.com/atom/atom.git
synced 2026-02-11 07:05:11 -05:00
Editor.renderedLines' width is set to the maximum of either Editor.scrollView's width or the maximum rendered line width
This commit is contained in:
@@ -650,7 +650,11 @@ class Editor extends View
|
||||
@renderedLines.css('padding-bottom', heightOfRenderedLines)
|
||||
|
||||
adjustWidthOfRenderedLines: ->
|
||||
@renderedLines.width(@charWidth * @maxScreenLineLength())
|
||||
width = @charWidth * @maxScreenLineLength()
|
||||
if width > @scrollView.width()
|
||||
@renderedLines.width(width)
|
||||
else
|
||||
@renderedLines.width(@scrollView.width())
|
||||
|
||||
handleScrollHeightChange: ->
|
||||
scrollHeight = @lineHeight * @screenLineCount()
|
||||
|
||||
Reference in New Issue
Block a user