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