diff --git a/src/editor-scroll-view-component.coffee b/src/editor-scroll-view-component.coffee index e89ffec12..ba2a50755 100644 --- a/src/editor-scroll-view-component.coffee +++ b/src/editor-scroll-view-component.coffee @@ -180,6 +180,8 @@ EditorScrollViewComponent = React.createClass # and use the scrollHeight / scrollWidth as its height and width in # calculations. measureHeightAndWidth: -> + return unless @isMounted() + {editor} = @props node = @getDOMNode() computedStyle = getComputedStyle(node)