Bug 498834

Summary: Notification overflowing off screen when typing in textbox
Product: [Plasma] plasmashell Reporter: dhruv8sh <dhruv8sh>
Component: NotificationsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde, kdedev, nate
Priority: NOR Keywords: regression
Version First Reported In: 6.2.90   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description dhruv8sh 2025-01-18 07:20:40 UTC
(Not sure if KDE connect specific)

SUMMARY
I got a message notification from KDE connect on my system. Clicked on reply, started typing...
The message box, along with the notification container overflowed out of my screen.

STEPS TO REPRODUCE
Start typing without a line-break in a notification text-box.

EXPECTED RESULT
The message wraps around along with an indicator of wraparound.
AND/OR
The notification box grows on the opposite direction as of the nearest screen edge. With a maximum size.
OR
The text-box gets a horizontal scrollbar.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.90
KDE Frameworks Version: 6.10.0
Qt Version: 6.9.0
Kernel Version: 6.12.9-arch1-1 (64-bit)
Graphics Platform: Wayland

EXTRA INFORMATION
Notifications are currently set to top-right of the screen.
Comment 1 Nate Graham 2025-01-21 21:13:47 UTC
Can reproduce with all notifications that have text fields.
Comment 2 Bug Janitor Service 2025-01-22 10:31:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5099
Comment 3 Marco Martin 2025-01-23 09:58:50 UTC
Git commit ab0e0c4a16de48931db644fa9343ad6ec94c0283 by Marco Martin.
Committed on 23/01/2025 at 09:29.
Pushed by mart into branch 'master'.

applets/notification: limit popup with of inlineReply

Text field implicit width is based on user text and will bubble
up to the popup.
Limit NotificationReplyField with to the Globals popupwidth

M  +1    -1    applets/notifications/package/contents/ui/components/ActionContainer.qml
M  +4    -0    applets/notifications/package/contents/ui/components/NotificationReplyField.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/ab0e0c4a16de48931db644fa9343ad6ec94c0283
Comment 4 Marco Martin 2025-01-23 12:52:56 UTC
Git commit 5d858f83a8e50fc1ce838991eb2bf49ce15fe5d9 by Marco Martin.
Committed on 23/01/2025 at 12:52.
Pushed by mart into branch 'Plasma/6.3'.

applets/notification: limit popup with of inlineReply

Text field implicit width is based on user text and will bubble
up to the popup.
Limit NotificationReplyField with to the Globals popupwidth

M  +1    -1    applets/notifications/package/contents/ui/components/ActionContainer.qml
M  +4    -0    applets/notifications/package/contents/ui/components/NotificationReplyField.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/5d858f83a8e50fc1ce838991eb2bf49ce15fe5d9