[Notifications] Fix implicit size propagation in SelectableLabel

The item's implicit size is supposed to be the size of its contents.

Fixes a regression from ScrollView port and restores line count
limit behavior (8 lines on popups, no limit in history).


(cherry picked from commit 49853de1ed)
wilder-5.24
Kai Uwe Broulik 4 years ago committed by Nate Graham
parent f1e9fd1f83
commit 654ce8451d
  1. 3
      applets/notifications/package/contents/ui/SelectableLabel.qml

@ -28,7 +28,8 @@ PlasmaComponents3.ScrollView {
signal clicked(var mouse)
signal linkActivated(string link)
implicitHeight: Math.min(bodyText.implicitHeight, PlasmaCore.Units.gridUnit * 5)
implicitWidth: bodyText.paintedWidth
implicitHeight: bodyText.paintedHeight
// HACK: workaround for https://bugreports.qt.io/browse/QTBUG-83890
PlasmaComponents3.ScrollBar.horizontal.policy: PlasmaComponents3.ScrollBar.AlwaysOff

Loading…
Cancel
Save