Closed Bug 2091671 Opened 19 days ago Closed 12 days ago

[customizable menu] Don't move "Hidden sections" up when dragging a section

Categories

(Firefox for Android :: Menu, task)

All
Android
task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: petru, Assigned: petru)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][android-core])

Attachments

(1 external file)

As requested by Aarjav:
Whenever the user starts dragging a section and that is shown above others:

  • the rest of the sections (not hidden) should fill the available space
  • the hidden section should remain where it was (as with a bigger top padding)

While a shown section is dragged, the shown sections below it still close
the gap it leaves, but the hidden sections title, the hidden sections and
the reset button now stay where they are instead of moving up.

An empty space above the hidden sections title takes up the dragged
section's size.
When the drop line is among the shown sections, it moves the items below
it, so the space is made smaller by the line's space.
The space is a node of its own in the hidden sections item, apart from
the title, so the title doesn't slide when the space changes size.

Drop targets are still picked with the drop line's space left out.
The empty space stays in, so the hidden sections are found where they are
shown.

Pushed by plingurar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c77a7f053346 https://hg.mozilla.org/integration/autoland/rev/4aba468d7370 Keep the hidden sections in place while a shown section is dragged r=android-reviewers,giorga
Status: ASSIGNED → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: