Don't recalculate dimensions on stylesheet changes for detached editors

This commit is contained in:
Nathan Sobo
2014-03-20 11:44:24 -06:00
parent b82537b020
commit 075611eb65

View File

@@ -884,6 +884,8 @@ class EditorView extends View
@setHeightInLines()
recalculateDimensions: ->
return unless @attached
oldCharWidth = @charWidth
oldLineHeight = @lineHeight