OSDN Git Service

QmlDesigner.ItemLibrary: Hide scroll bar when not needed
authorJörg Schummer <ext-jorg.2.schummer@nokia.com>
Thu, 29 Apr 2010 11:40:33 +0000 (14:40 +0300)
committerLasse Holmstedt <lasse.holmstedt@nokia.com>
Fri, 30 Apr 2010 07:54:33 +0000 (09:54 +0200)
Task-number: BAUHAUS-447
Task-number: BAUHAUS-639

src/plugins/qmldesigner/components/itemlibrary/qml/ItemsView.qml

index b56ae2b..002a003 100644 (file)
@@ -219,10 +219,7 @@ content position out of scope regarding the scrollbar. */
                                 anchors.bottom: parent.bottom
                                 anchors.bottomMargin: 1
                                 anchors.right: parent.right
-// The next line unfortunately introduces a cyclic property binding (strangely,
-// in SectionView)
-//                                width: (itemsFlickable.contentHeight > itemsFlickable.height)? 11:0
-                                width: 11
+                                width: (itemsFlickable.contentHeight > itemsFlickable.height)? 11:0
 
                                 Scrollbar {
                                     id: scrollbar