Use the computed style to find the height

This commit is contained in:
joshaber
2016-02-25 15:18:29 -05:00
parent f3ce468a70
commit 822cd78055

View File

@@ -731,8 +731,7 @@ class TextEditorComponent
measureDimensions: ->
return unless @mounted
{position} = getComputedStyle(@hostElement)
{height} = @hostElement.style
{position, height} = getComputedStyle(@hostElement)
if position is 'absolute' or height
@presenter.setAutoHeight(false)