diff --git a/src/text-editor-component.coffee b/src/text-editor-component.coffee index 45591c195..8a1469bb9 100644 --- a/src/text-editor-component.coffee +++ b/src/text-editor-component.coffee @@ -107,7 +107,6 @@ class TextEditorComponent @disposables.dispose() @presenter.destroy() @gutterContainerComponent?.destroy() - window.removeEventListener 'resize', @requestHeightAndWidthMeasurement getDomNode: -> @domNode @@ -224,7 +223,6 @@ class TextEditorComponent @domNode.addEventListener 'textInput', @onTextInput @scrollViewNode.addEventListener 'mousedown', @onMouseDown @scrollViewNode.addEventListener 'scroll', @onScrollViewScroll - window.addEventListener 'resize', @requestHeightAndWidthMeasurement @listenForIMEEvents() @trackSelectionClipboard() if process.platform is 'linux' @@ -589,15 +587,6 @@ class TextEditorComponent else @wasVisible = false - requestHeightAndWidthMeasurement: => - return if @heightAndWidthMeasurementRequested - - @heightAndWidthMeasurementRequested = true - requestAnimationFrame => - @heightAndWidthMeasurementRequested = false - @measureDimensions() - @measureWindowSize() - # Measure explicitly-styled height and width and relay them to the model. If # these values aren't explicitly styled, we assume the editor is unconstrained # and use the scrollHeight / scrollWidth as its height and width in