From 41dadc7729bcbcd4af18e8ca1791e1aa6646b69b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 25 Nov 2011 19:08:04 +0100 Subject: [PATCH] fix for mainitem width --- .../plasmacomponents/platformcomponents/touch/Dialog.qml | 2 ++ .../platformcomponents/touch/SectionScroller.qml | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/declarativeimports/plasmacomponents/platformcomponents/touch/Dialog.qml b/declarativeimports/plasmacomponents/platformcomponents/touch/Dialog.qml index d3e02d01b..94bbc5b2b 100644 --- a/declarativeimports/plasmacomponents/platformcomponents/touch/Dialog.qml +++ b/declarativeimports/plasmacomponents/platformcomponents/touch/Dialog.qml @@ -112,6 +112,7 @@ Item { onActiveWindowChanged: if (!activeWindow) dialog.visible = false mainItem: Item { + id: mainItem width: theme.defaultFont.mSize.width * 40 height: titleBar.childrenRect.height + contentItem.childrenRect.height + buttonItem.childrenRect.height @@ -133,6 +134,7 @@ Item { Item { id: contentItem + onChildrenRectChanged: mainItem.width = childrenRect.width clip: true anchors { top: titleBar.bottom diff --git a/declarativeimports/plasmacomponents/platformcomponents/touch/SectionScroller.qml b/declarativeimports/plasmacomponents/platformcomponents/touch/SectionScroller.qml index 17711a774..d9740e6a4 100644 --- a/declarativeimports/plasmacomponents/platformcomponents/touch/SectionScroller.qml +++ b/declarativeimports/plasmacomponents/platformcomponents/touch/SectionScroller.qml @@ -151,11 +151,6 @@ Item { } sectionLabel.text = Sections.closestSection(y/listView.height) } - Behavior on y { - NumberAnimation { - duration: 150 - } - } } PlasmaCore.FrameSvgItem { imagePath: "widgets/tooltip"