mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Add the simplest resize fix that will work.
This commit is contained in:
@@ -176,6 +176,7 @@ EditorComponent = React.createClass
|
||||
@updateParentViewFocusedClassIfNeeded(prevState)
|
||||
@measureScrollbars() if @measuringScrollbars
|
||||
@measureLineHeightAndCharWidthsIfNeeded(prevState)
|
||||
@requestScrollViewMeasurement()
|
||||
@props.parentView.trigger 'editor:display-updated'
|
||||
|
||||
requestUpdate: ->
|
||||
@@ -266,7 +267,6 @@ EditorComponent = React.createClass
|
||||
node.addEventListener 'focus', @onFocus # For some reason, React's built in focus events seem to bubble
|
||||
|
||||
scrollViewNode = @refs.scrollView.getDOMNode()
|
||||
scrollViewNode.addEventListener 'overflowchanged', @onScrollViewOverflowChanged
|
||||
scrollViewNode.addEventListener 'scroll', @onScrollViewScroll
|
||||
window.addEventListener('resize', @onWindowResize)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user