Also ensure editor is *visible* before recalculating dimensions

This commit is contained in:
Nathan Sobo
2014-03-21 17:33:39 -06:00
parent 831beceaac
commit 424652e27c

View File

@@ -885,7 +885,7 @@ class EditorView extends View
@setHeightInLines()
recalculateDimensions: ->
return unless @attached
return unless @attached and @isVisible()
oldCharWidth = @charWidth
oldLineHeight = @lineHeight