[wp-trac] [WordPress Trac] #40811: Gallery drag and drop breaks layout
WordPress Trac
noreply at wordpress.org
Thu May 18 23:40:25 UTC 2017
#40811: Gallery drag and drop breaks layout
--------------------------+-----------------------------
Reporter: smerriman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Gallery | Version: 4.7.5
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Starting with an example gallery:
[[Image(https://cldup.com/hcwGa3LYIW-3000x3000.png)]]
1) If I start dragging the nth item in a row, n blank spaces are created
in the next row, eg:
[[Image(https://cldup.com/_Fbgdjcs1w-3000x3000.png)]]
2) The exception is when I start dragging the last item in a row - as soon
as I start to drag, a blank space appears where the current item / the
mouse is, and the actual item I am dragging appears a long way from the
mouse (in the first position in the next row).
[[Image(https://cldup.com/8j0d3aCFrk-3000x3000.png)]]
This occurs in Firefox in Windows on a clean WordPress installation with
no plugins installed. Testing in Chrome, I get the same results with the
exception of dragging the 2nd or 4th item in a row, which work perfectly
(1st and 3rd cause gaps; last breaks).
I expect this is due to rounding in some way, and it appears to differ
based on the width of your browser. If I go into Firefox responsive view
and set a width of 1366px, everything works perfectly. 1367px works for
all but the last image in a row, while 1369px has everything broken.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40811>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list