From 6196882b9d215fc6b1f146558b3177f58755dfe9 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 4 Feb 2015 11:35:07 -0700 Subject: [PATCH] Include scrollbar dimensions in required measurements in presenter --- src/text-editor-presenter.coffee | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/text-editor-presenter.coffee b/src/text-editor-presenter.coffee index bd3ea0ad4..39686fcf8 100644 --- a/src/text-editor-presenter.coffee +++ b/src/text-editor-presenter.coffee @@ -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