[customizable menu] Ensure the purple divider takes space just like any other section
Categories
(Firefox for Android :: Menu, task)
Tracking
()
People
(Reporter: petru, Assigned: petru)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][android-core])
Attachments
(1 external file)
As requested by Aarjav:
The purple divider from bug 2086552 should take space just like any other section instead of being shown in the padding space between 2 sections:
Expected:
padding
divider
padding
Updated•5 days ago
|
| Assignee | ||
Updated•5 days ago
|
| Assignee | ||
Comment 1•5 days ago
|
||
While a section is dragged, the line showing where it will be dropped
now takes its own space between sections (section / spacing / line /
spacing / section) instead of being drawn in the spacing between them.
The item next to the drop position grows by the item spacing plus the
line's thickness.
When the section would go back where it was, the gap it left keeps
that space instead.
Because that space moves the items after it, it could also move the drop
target, which would move the space again.
To avoid this, the draggable library gets an optional targetingLayoutInfo,
which adjusts the list's layout before drop targets are found in it.
The customize menu uses it to leave out the space taken by the drop line,
which it records while measuring.
Description
•