Set System Tray AppletItem width properly

Summary:
Width should not include top and bottom margins

BUG: 364543
FIXED-IN: 5.7

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D1966
wilder-5.14
David Edmundson 10 years ago
parent 7a422b41b6
commit aa5fde007d
  1. 5
      applets/systemtray/package/contents/ui/items/AbstractItem.qml

@ -24,9 +24,10 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
PlasmaCore.ToolTipArea {
id: abstractItem
height: hidden ? root.hiddenItemSize + marginHints.top + marginHints.bottom : root.itemSize + marginHints.top + marginHints.bottom
width: labelVisible ? parent.width : height + marginHints.left + marginHints.right
height: effectiveItemSize + marginHints.top + marginHints.bottom
width: labelVisible ? parent.width : effectiveItemSize + marginHints.left + marginHints.right
property real effectiveItemSize: hidden ? root.hiddenItemSize : root.itemSize
property string itemId
property string category
property alias text: label.text

Loading…
Cancel
Save