Don't set line height on mini editors

This commit is contained in:
Kevin Sawicki
2014-03-25 10:55:32 -07:00
parent 92283cabfa
commit 0adae86b4d

View File

@@ -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()