From fa733c85adf507be007a84c9a994c739ff09cab9 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 16 Oct 2014 12:43:41 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20setEditorHeightInLines=20shim=20now=20tha?= =?UTF-8?q?t=20we=E2=80=99ve=20dropped=20.react=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/spec-helper.coffee | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 6f84c2eab..663b10ae1 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -338,12 +338,8 @@ window.setEditorWidthInChars = (editorView, widthInChars, charWidth=editorView.c $(window).trigger 'resize' # update width of editor view's on-screen lines window.setEditorHeightInLines = (editorView, heightInLines, lineHeight=editorView.lineHeight) -> - if editorView.hasClass('react') - editorView.height(editorView.getEditor().getLineHeightInPixels() * heightInLines) - editorView.component?.measureHeightAndWidth() - else - editorView.height(lineHeight * heightInLines + editorView.renderedLines.position().top) - $(window).trigger 'resize' # update editor view's on-screen lines + editorView.height(editorView.getEditor().getLineHeightInPixels() * heightInLines) + editorView.component?.measureHeightAndWidth() $.fn.resultOfTrigger = (type) -> event = $.Event(type)