[wp-trac] [WordPress Trac] #41486: Admin html element is not full-height

WordPress Trac noreply at wordpress.org
Sun Jul 30 13:21:11 UTC 2017


#41486: Admin html element is not full-height
-----------------------------------------------+---------------------------
 Reporter:  Cybr                               |       Owner:
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  Awaiting
Component:  Administration                     |  Review
 Severity:  normal                             |     Version:
 Keywords:  has-screenshots reporter-feedback  |  Resolution:
                                               |     Focuses:  ui
-----------------------------------------------+---------------------------
Changes (by afercia):

 * keywords:   => has-screenshots reporter-feedback
 * focuses:  ui, administration => ui
 * version:  trunk =>


Comment:

 `html, body { height: 100%; }` is a common CSS technique to make the body
 element always extend its height to the bottom of the screen ''when the
 page content height is less than the screen height''. Without that, for
 example, the footer wouldn't stick to the bottom:

 [[Image(https://cldup.com/XT-8LBR3rC.jpg)]]

 > `body { height: 100% }` is fine
 That wouldn't work because a percentage height is calculated on the height
 of the parent element.

 > Applications that want to make use of the page height can't calculate
 their position correctly through CSS and therefore they require JavaScript
 or other hacks (e.g. absolute positioning modals)

 I guess this depends on a case by case basis and on what you're actually
 trying to do. Centering a modal dialog is pretty simple, can you describe
 a scenario where calculating a modal position through CSS would be
 impossible?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41486#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list