From 992b64a1678478259ccf6e9ac9e836d7ecf671c5 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 16 Jun 2014 15:57:45 +0200 Subject: [PATCH] small workaround to show all the highlight borders BUG:336210 --- .../plasmacomponents/qml/ToolButton.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/declarativeimports/plasmacomponents/qml/ToolButton.qml b/src/declarativeimports/plasmacomponents/qml/ToolButton.qml index 1183daa05..4e0dd0162 100644 --- a/src/declarativeimports/plasmacomponents/qml/ToolButton.qml +++ b/src/declarativeimports/plasmacomponents/qml/ToolButton.qml @@ -210,15 +210,27 @@ Item { var borders = new Array() if (button.x == 0) { borders.push("LeftBorder") + shadow.anchors.leftMargin = 0; + } else { + shadow.anchors.leftMargin = -1; } if (button.y == 0) { borders.push("TopBorder") + shadow.anchors.topMargin = 0; + } else { + shadow.anchors.topMargin = -1; } if (button.x + button.width >= button.parent.width) { borders.push("RightBorder") + shadow.anchors.rightMargin = 0; + } else { + shadow.anchors.rightMargin = -1; } if (button.y + button.height >= button.parent.height) { borders.push("BottomBorder") + shadow.anchors.bottomMargin = 0; + } else { + shadow.anchors.bottomMargin = -1; } if (shadows === null) {