[wp-trac] [WordPress Trac] #29606: Reorder images via drag and drop is not working in WP 4

WordPress Trac noreply at wordpress.org
Wed Dec 3 14:07:12 UTC 2014


#29606: Reorder images via drag and drop is not working in WP 4
--------------------------+------------------------------
 Reporter:  gsarig        |       Owner:  ericandrewlewis
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Future Release
Component:  Gallery       |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui
--------------------------+------------------------------

Comment (by afercia):

 is this happening just in Chrome? Sorry I can't reproduce but I had some
 fights with similar issues in the past. If the culprit is really the
 difference between the CSS computed width in Chrome and the width value
 that jQuery UI actually uses (didn't look into that) maybe there's
 something easy to try.
 Chrome does sub-pixel roundings, testing on my machine the relevant values
 are:

 .attachments (6 attachments per row)
 computed width: 1104px;

 .attachment
 width: 16.66%;
 padding: 8px;
 box-sizing: border-box;
 Chrome computed width: 183.921875px;
 (just for reference, in Firefox is : 183.917px)

 .attachment-preview
 .thumbnail
 Chrome computed width: 167.921875px;
 (Firefox: 167.917px)

 And the following works just in Chrome: setting `display: table` on
 .attachment

 .attachment
 the computed width becomes: 183px;

 .attachment-preview
 .thumbnail
 the computed width becomes: 167px;

 which hopefully will help jQuery UI.

 That's because Chrome will use the table sizing algorithms (no more
 roundings).

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


More information about the wp-trac mailing list