Measure scrollbars immediately when editor becomes visible

This ensures all required measurements are present so assignment of
subsequent measurements such as backgroundColor have an effect.
Esse commit está contido em:
Nathan Sobo
2015-02-04 11:48:47 -07:00
commit 59d96c9f1a
+1 -1
Ver Arquivo
@@ -168,10 +168,10 @@ TextEditorComponent = React.createClass
becameVisible: ->
@updatesPaused = true
@measureScrollbars() if @measureScrollbarsWhenShown
@sampleFontStyling()
@sampleBackgroundColors()
@measureHeightAndWidth()
@measureScrollbars() if @measureScrollbarsWhenShown
@measureLineHeightAndDefaultCharWidth() if @measureLineHeightAndDefaultCharWidthWhenShown
@remeasureCharacterWidths() if @remeasureCharacterWidthsWhenShown
@props.editor.setVisible(true)