[wp-trac] [WordPress Trac] #29085: Media Grid: Remove padding and margins around left and right sides of grid

WordPress Trac noreply at wordpress.org
Sat Aug 2 13:47:21 UTC 2014


#29085: Media Grid: Remove padding and margins around left and right sides of grid
-------------------------+---------------------------------
 Reporter:  melchoyce    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.0
Component:  Media        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  ui, administration
-------------------------+---------------------------------

Comment (by afercia):

 Replying to [comment:5 ocean90]:
 > #27423 will probably remove resizing via JS.
 that would be great.
 However I was wrong, it's not just Chrome and it has nothing to do with
 overflow "auto". The main issue here is about timing. That's because
 this.$el.width() returns a value *before* the vertical scrollbar appears.
 Say you have enough attachments to have a vertical scrollbar in your
 browser. Reload the page, and it will be empty for a while, waiting for
 attachments to appear. The duration of this "lag" is totally
 unpredictable, it will depend on so many factors: network speed, server
 speed, your CPU/GPU etc. However, this.$el.width() will return a value
 now, while the page is "empty" and before the scrollbar appears.
 In my case, it returns 1462. Then, attachments appear and finally I have a
 vertical scrollbar, so the actual available width is 1445 (1462 - the
 scrollbar width). All the calculations (columns, edge) will still use 1462
 while the real available width is 1445.

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


More information about the wp-trac mailing list