[wp-trac] [WordPress Trac] #45461: Incorrect height of the WP editor, when loaded in a hidden layer
WordPress Trac
noreply at wordpress.org
Mon Jan 28 15:01:14 UTC 2019
#45461: Incorrect height of the WP editor, when loaded in a hidden layer
--------------------------+-----------------------
Reporter: nnikolov | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.1
Component: TinyMCE | Version: 5.0
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------
Changes (by azaozz):
* milestone: => 5.1
Comment:
Think I got to the bottom of it :)
Happens when we try to "close" the second row of toolbar buttons on
initializing the editor. It looks at `editor.iframeElement.clientHeight`
which, as the whole iframe is in a hidden div, is 0/not set. Then we
increase it with 30px to compensate for the closed toolbar row. That's why
the iframe height gets set to 30px but the textarea (where TinyMCE takes
the height from) is still correctly set to 300px.
It's a small but annoying regression. Patch coming up.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45461#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list