From 6bd16ab16686b2921fe07da6fb16ee1629e881ff Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 16 May 2014 14:20:21 +0200 Subject: [PATCH] fix some label layout issues --- tabbox/qml/clients/sidebar/contents/ui/main.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tabbox/qml/clients/sidebar/contents/ui/main.qml b/tabbox/qml/clients/sidebar/contents/ui/main.qml index f8415d63b2..acb212fae7 100644 --- a/tabbox/qml/clients/sidebar/contents/ui/main.qml +++ b/tabbox/qml/clients/sidebar/contents/ui/main.qml @@ -90,12 +90,13 @@ KWin.Switcher { RowLayout { id: label spacing: 4 - property int maximumWidth: thumbnailListView.delegateWidth - Layout.maximumWidth: maximumWidth + anchors { left: parent.left + right: parent.right bottom: parent.bottom leftMargin: hoverItem.margins.left + rightMargin: hoverItem.margins.right bottomMargin: hoverItem.margins.bottom } QIconItem { @@ -110,6 +111,7 @@ KWin.Switcher { PlasmaComponents.Label { text: model.caption elide: Text.ElideMiddle + Layout.fillWidth: true Layout.maximumWidth: label.maximumWidth - iconItem.iconSize - label.spacing * 2 }