touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #105071
[Bug 1498138] Re: z-order weirdness when dragging ListItems
1) Indeed, we should set the z-order to be MAXINT while dragged so they go over any element in the view.
2) you don't see the z-order going back to 1 as the dragged item is duplicated, the original one is hidden for the entire time of dragging and the duplicate is set to be z-ordered 2. This duplicate is then deleted when dropped event animations are completed.
So the only bug we have is the z-order of the dragged element.
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: New => Confirmed
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided => Medium
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Assignee: (unassigned) => Zsombor Egri (zsombi)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1498138
Title:
z-order weirdness when dragging ListItems
Status in ubuntu-ui-toolkit package in Ubuntu:
Confirmed
Bug description:
ListItems in a ListView start off with a z of 1. When you start
dragging them, they get a z of 2. This causes two bits of weirdness:
1) Section headers in the ListView also have a z of 2. (See
http://doc.qt.io/qt-5/qml-qtquick-listview.html#section-prop) This
causes inconsistent layering of the dragged item relative to headers.
Sometimes it appears above the headers, sometimes below. I haven't
found a rhyme or reason to which occurs when, but I can eliminate the
problem by reducing the z index of the headers. A better solution, in
my mind, would be to increase the z index of items while they are
being dragged.
2) The z index of items is not reset when the drag ends. I haven't
noticed any problems caused by this in my testing, but this is the
sort of unexpected behavior that is almost guaranteed to cause
confusion down the line.
This is seen the the current stable image (r1 on flo).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1498138/+subscriptions
References