[wp-trac] [WordPress Trac] #29606: Reorder images via drag and drop is not working in WP 4
WordPress Trac
noreply at wordpress.org
Tue Jun 2 13:24:01 UTC 2015
#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 earnjam):
I'm able to re-create the issue on both retina and non-retina displays in
all browsers, however the problem is dependent on the window size and
typically when you see it, if you resize the window larger or smaller, the
issue goes away. The container sizes where the issue occurs varies between
browser and screen type. This explains why some people see it and others
do not.
As I noted above
(https://core.trac.wordpress.org/ticket/29606#comment:21), the problem can
be seen when just using some very basic % width floated elements and
jQuery UI Sortable.
Sortable appears to round the calculated % widths when generating the
placeholder and the dragged item because it needs a specific pixel width
for the absolute positioning. Sometimes it gets rounded too large for the
space available, so the browser then calculates the floated item as being
on the next row.
I think the solution is that Sortable probably needs more precise
rounding, or perhaps to simply always round down, when calculating the
current width of a floated element with a percentage width.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29606#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list