fix(message): Allow height to be 0, remove 150px min height

This commit is contained in:
Ben Gotow 2016-02-05 15:33:07 -08:00
parent 205f3ba6ab
commit fc2a179c6c

View file

@ -37,7 +37,8 @@ class EmailFrame extends React.Component
!_.isEqual(newProps, @props)
_writeContent: =>
doc = React.findDOMNode(@).contentDocument
domNode = React.findDOMNode(@)
doc = domNode.contentDocument
return unless doc
doc.open()
@ -57,6 +58,7 @@ class EmailFrame extends React.Component
# Notify the EventedIFrame that we've replaced it's document (with `open`)
# so it can attach event listeners again.
@refs.iframe.documentWasReplaced()
domNode.height = '0px'
@_setFrameHeight()
_getFrameHeight: (doc) ->