From 0adae86b4d395c8b5a79f0a1111fdf57a047ff3d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 25 Mar 2014 10:55:32 -0700 Subject: [PATCH] Don't set line height on mini editors --- src/editor-view.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/editor-view.coffee b/src/editor-view.coffee index ffd09dd92..2a28b6d83 100644 --- a/src/editor-view.coffee +++ b/src/editor-view.coffee @@ -750,11 +750,14 @@ class EditorView extends View # Returns a {String} identifying the CSS `font-family`. getFontFamily: -> @css("font-family") - # Public: Sets the line height of the editor + # Public: Sets the line height of the editor. + # + # Calling this method has no effect when called on a mini editor. # # lineHeight - A {Number} without a unit suffix identifying the CSS # `line-height`. setLineHeight: (lineHeight) -> + return if @mini @css('line-height', lineHeight) @redraw()