[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).
wilder-5.25
Kai Uwe Broulik 4 years ago committed by Nate Graham
parent d62ba679c7
commit 49853de1ed
  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