Include scrollbar dimensions in required measurements in presenter

This commit is contained in:
Nathan Sobo
2015-02-04 11:35:07 -07:00
parent 3973939de1
commit 6196882b9d

View File

@@ -414,7 +414,13 @@ class TextEditorPresenter
getCursorBlinkResumeDelay: -> @cursorBlinkResumeDelay
hasRequiredMeasurements: ->
@lineHeight? and @baseCharacterWidth? and @getHeight()? and @scrollTop? and @contentFrameWidth? and @scrollLeft?
@lineHeight? and
@baseCharacterWidth? and
@scrollTop? and
@contentFrameWidth? and
@scrollLeft? and
@verticalScrollbarWidth? and
@horizontalScrollbarHeight?
setScrollTop: (scrollTop) ->
unless @scrollTop is scrollTop