mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Also ensure editor is *visible* before recalculating dimensions
This commit is contained in:
@@ -885,7 +885,7 @@ class EditorView extends View
|
||||
@setHeightInLines()
|
||||
|
||||
recalculateDimensions: ->
|
||||
return unless @attached
|
||||
return unless @attached and @isVisible()
|
||||
|
||||
oldCharWidth = @charWidth
|
||||
oldLineHeight = @lineHeight
|
||||
|
||||
Reference in New Issue
Block a user