mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-07 13:14:47 +08:00
fix(message): Allow height to be 0, remove 150px min height
This commit is contained in:
parent
205f3ba6ab
commit
fc2a179c6c
1 changed files with 3 additions and 1 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Reference in a new issue