=== modified file 'src/imports/Components/1.3/ComboButton.qml'
--- src/imports/Components/1.3/ComboButton.qml  2016-09-13 15:01:14 +0000
+++ src/imports/Components/1.3/ComboButton.qml  2016-09-13 15:57:46 +0000
@@ -395,6 +395,7 @@
         }
     }
     Scrollbar {
+        parent: comboHolder.parent
         flickableItem: comboHolder
     }

This appears to work. However no test seems to catch this problem - we
need to find a way to test that this is actually fixed.

-- 
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

Reply via email to