From 654ce8451d3e130c3babddbcbebce0e2eac99c6e Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 17 Mar 2022 22:51:59 +0100 Subject: [PATCH] [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 49853de1ed08fcb2cc83d413f2c792de3130e6c2) --- applets/notifications/package/contents/ui/SelectableLabel.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applets/notifications/package/contents/ui/SelectableLabel.qml b/applets/notifications/package/contents/ui/SelectableLabel.qml index bc9e04e22..09dd494c9 100644 --- a/applets/notifications/package/contents/ui/SelectableLabel.qml +++ b/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