[wp-trac] [WordPress Trac] #22168: wp_editor height glitch in closed/collapsed meta boxes

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 11 17:17:29 UTC 2012


#22168: wp_editor height glitch in closed/collapsed meta boxes
-----------------------------+--------------------------
 Reporter:  nenai            |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  TinyMCE
  Version:  3.4.2            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22168>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list