mirror of
https://github.com/atom/atom.git
synced 2026-01-28 00:08:13 -05:00
Use the computed style to find the height
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user