wp_editor height glitch in closed/collapsed meta boxes
|Reported by:||nenai||Owned by:|
If a meta box that contains one or more wp_editor()s loads in the closed/collapsed state the height isn't calculated correctly for the contained editors.
This varies per browser, chrome and safari seem to be able to work out the height of any editors in the first meta box but any editors in other meta boxes further down the page don't render correctly; while firefox doesn't seem to render any correctly.
I've found a hackish fix if any others happen to find this and need this functionality as I did. Using jquery removing any .closed class from #postbox-container-2 > div > .postbox on $(document).ready() seems to let all editors render correctly for every browser. You can also reapply the .closed class the same way after a timeout of about one second if you want the default to be collapsed as I did.