From 2d77f988968ba69bc68a2e7d43eb158c8ab535ca Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Thu, 12 Jul 2018 12:33:43 +0300 Subject: [PATCH] fixes for dock configuration window --fix binding loop from Tweaks page --remove anchorings when used Layouts --- .../contents/configuration/LatteDockConfiguration.qml | 9 +++------ shell/package/contents/configuration/TweaksConfig.qml | 3 ++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/shell/package/contents/configuration/LatteDockConfiguration.qml b/shell/package/contents/configuration/LatteDockConfiguration.qml index c1ca8d438..ee9a642f2 100644 --- a/shell/package/contents/configuration/LatteDockConfiguration.qml +++ b/shell/package/contents/configuration/LatteDockConfiguration.qml @@ -225,18 +225,15 @@ FocusScope { PlasmaComponents.ToolButton { id: pinButton - anchors.right: parent.right - anchors.top: parent.top - //!avoid editMode box shadow - anchors.topMargin: units.smallSpacing - anchors.rightMargin: units.smallSpacing - Layout.fillWidth: false Layout.fillHeight: false Layout.preferredWidth: width Layout.preferredHeight: height Layout.alignment: Qt.AlignRight | Qt.AlignVCenter Layout.bottomMargin: units.smallSpacing * 3 + //!avoid editMode box shadow + Layout.topMargin: units.smallSpacing * 2 + Layout.rightMargin: units.smallSpacing iconSource: "window-pin" checkable: true diff --git a/shell/package/contents/configuration/TweaksConfig.qml b/shell/package/contents/configuration/TweaksConfig.qml index 8f4de77e9..bd5639fbe 100644 --- a/shell/package/contents/configuration/TweaksConfig.qml +++ b/shell/package/contents/configuration/TweaksConfig.qml @@ -250,7 +250,8 @@ PlasmaComponents.Page { PlasmaComponents.Button { iconSource: "distribute-horizontal-x" text: i18n("Add Spacer") - Layout.minimumWidth: 0.5 * (parent.width - units.smallSpacing) + Layout.minimumWidth: 0.5 * (content.width - 5 * units.smallSpacing) + Layout.maximumWidth: Layout.minimumWidth Layout.alignment: Qt.AlignLeft tooltip: i18n("Add a spacer to separate applets")