mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Ensure underlayer and overlayer are always the same width as lines
Also… simplify CSS rules for lines element. No display table or padding, instead we just set the min width when typing.
This commit is contained in:
@@ -730,7 +730,7 @@ class Editor extends View
|
||||
@renderedLines.css('padding-bottom', heightOfRenderedLines)
|
||||
|
||||
adjustMinWidthOfRenderedLines: ->
|
||||
minWidth = @charWidth * @maxScreenLineLength()
|
||||
minWidth = @charWidth * @maxScreenLineLength() + 20
|
||||
unless @renderedLines.cachedMinWidth == minWidth
|
||||
@renderedLines.css('min-width', minWidth)
|
||||
@underlayer.css('min-width', minWidth)
|
||||
|
||||
Reference in New Issue
Block a user