[wp-trac] [WordPress Trac] #38755: Customize: use calc() to set textarea height for custom CSS

WordPress Trac noreply at wordpress.org
Fri Nov 11 17:10:44 UTC 2016


#38755: Customize: use calc() to set textarea height for custom CSS
----------------------------+-----------------------------
 Reporter:  michaelarestad  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Customize       |    Version:
 Severity:  normal          |   Keywords:
  Focuses:  ui              |
----------------------------+-----------------------------
 The custom CSS module is pretty rad, but right now the height is just
 fixed at 553px. I think we can do better by making it as large as it can
 be in the visible space.

 The method I propose uses a combination of the `calc()` function and `vh`,
 a viewport unit. If the browser doesn't support either `calc()` or `vh`,
 it will gracefully fall back to whatever we set the fallback height to.

 My first patch fills as much space as possible. I have a minor concern
 that when other plugins enhance this editor (Jetpack), that the controls
 for it will be below and might be lost because it is filling the space.
 That said, those plugins could just override the height.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38755>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list