nchor to the flickable instead of parent

This commit is contained in:
Marco Martin 2012-10-26 17:49:23 +02:00
parent 6327065728
commit 8d24d8e1b0

View File

@ -134,9 +134,9 @@ Item {
property bool isScrollBar: true property bool isScrollBar: true
anchors { anchors {
left: undefined left: undefined
top: parent.top top: flickableItem.top
right: parent.right right: parent.right
bottom: parent.bottom bottom: flickableItem.bottom
} }
} }
} }
@ -146,9 +146,9 @@ Item {
flickableItem: root.flickableItem flickableItem: root.flickableItem
orientation: Qt.Horizontal orientation: Qt.Horizontal
anchors { anchors {
left: parent.left left: flickableItem.left
top: undefined top: undefined
right: parent.right right: flickableItem.right
bottom: parent.bottom bottom: parent.bottom
} }
} }
@ -160,9 +160,9 @@ Item {
property bool isScrollBar: false property bool isScrollBar: false
anchors { anchors {
left: undefined left: undefined
top: parent.top top: flickableItem.top
right: parent.right right: parent.right
bottom: parent.bottom bottom: flickableItem.bottom
} }
} }
} }