Update vertical scroll state when contentFrameWidth changes

A wider content frame can mean the horizontal scrollbar gets hidden,
which could in turn mean we need to adjust the scrollTop because the
clientHeight changed.
Esse commit está contido em:
Nathan Sobo
2015-02-04 11:51:46 -07:00
commit 9bdb961b3f
+1
Ver Arquivo
@@ -487,6 +487,7 @@ class TextEditorPresenter
setContentFrameWidth: (contentFrameWidth) ->
unless @contentFrameWidth is contentFrameWidth
@contentFrameWidth = contentFrameWidth
@updateVerticalScrollState()
@updateHorizontalScrollState()
@updateScrollbarsState()
@updateContentState()