QmlDesigner.ItemLibrary: fixed scrolling

- view is not moving anymore when opening/closing sections
This commit is contained in:
Jörg Schummer
2010-02-24 19:07:31 +02:00
committed by Kai Koehne
parent 7856b196db
commit 411597777b
3 changed files with 51 additions and 63 deletions

View File

@@ -67,7 +67,7 @@ Rectangle {
function expandAll() {
expandAllEntries();
scrollbar.handleBar.y = 0;
scrollbar.moveHandle(0, true)
}
signal expandAllEntries()
@@ -134,8 +134,6 @@ Rectangle {
interactive: false
viewportHeight: col.height
onViewportHeightChanged: scrollbar.limitHandle()
Column {
id: col
@@ -151,7 +149,7 @@ Rectangle {
style: itemsView.style
scrollFlickable: itemsFlickable
onMoveScrollbarHandle: scrollbar.moveHandle(viewportPos)
onMoveScrollbarHandle: scrollbar.moveHandle(viewportPos, true)
width: itemsView.cellWidth
height: itemsView.cellHeight
@@ -169,7 +167,7 @@ Rectangle {
anchors.leftMargin: -10
anchors.right: parent.right
scrollFlickable: itemsFlickable
flickable: itemsFlickable
style: itemsView.style
}
}