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 50bd559623
commit 1cd49d952d

View file

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