diff --git a/applets/batterymonitor/package/contents/ui/BatteryItem.qml b/applets/batterymonitor/package/contents/ui/BatteryItem.qml index 5dfa3792c..5d82ef492 100644 --- a/applets/batterymonitor/package/contents/ui/BatteryItem.qml +++ b/applets/batterymonitor/package/contents/ui/BatteryItem.qml @@ -47,7 +47,9 @@ Item { PlasmaComponents3.Label { id: detailsLabel - width: modelData.value && parent ? parent.width - detailsLayout.leftColumnWidth - PlasmaCore.Units.smallSpacing : detailsLayout.leftColumnWidth + PlasmaCore.Units.smallSpacing + width: modelData.value && parent + ? parent.width - detailsLayout.leftColumnWidth - PlasmaCore.Units.smallSpacing + : detailsLayout.leftColumnWidth + PlasmaCore.Units.smallSpacing wrapMode: Text.NoWrap onPaintedWidthChanged: { // horrible HACK to get a column layout if (paintedWidth > detailsLayout.leftColumnWidth) {