rev2045 changes the order in which Scrollbar anchors to the flickable. since r2045 it waits for the flickable to be initialized before anchoring to it.
before: Scrollbar anchors to flickable. Flickable parent changes, engine says nothing. now: Flickable is initialized, its parent changes. Scrollbar waits for flickable to be initialized, then anchors to it. QML engine notices that Flickable is not a sibling/parent, and warns about failed anchoring My opinion: I think we should double and triplecheck if we really need the flickable parent hack, otherwise we should remove it. An alternative could be to try and change the scrollbar parent at the same as the flickable parent changes, but I'm not sure that's going to prevent the warning from showing, as there should still be a moment when Flickable and Scrollbar are anchored but not in a relationship that allows anchoring one to the other. ** Changed in: ubuntu-ui-toolkit (Ubuntu) Assignee: Andrea Bernabei (faenil) => 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/1620991 Title: Anchoring warnings in Buttons page in UITK Gallery Status in ubuntu-ui-toolkit package in Ubuntu: Confirmed Bug description: ubuntu-ui-toolkit/staging, r2090 1) Build uitk 2) run gallery with ./gallery.sh 3) Open Buttons page Expected outcome: no warnings Actual outcome: A few "QML Scrollbar: Cannot anchor to an item that isn't a parent or sibling." Explanation: That happens because Scrollbar anchors to the flickable item, but the ComboButton code has a hack that changes the parent of the Flickable to actually be Flickable's child. As a consequence Flickable is not a sibling of the scrollbar anymore, thus producing the anchor-related warning. See http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui- toolkit/staging/annotate/2090/src/Ubuntu/Components/1.3/ComboButton.qml#L354 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1620991/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp