Skip to content

applets/notifications: don't allow horizontal scrolling

Christoph Wolk requested to merge cwo/plasma-workspace:notification_width into master

Reason for the change

Notification bodies have their width constrained by the notification and the horizontal scrollbar forced off, but they can still be scrolled with a horizontal wheel, touchpad, or similiar. This is surprising and pointless.

Instead explicitly set the contentWidth, which is otherwise ultimately based on the underlying TextEdit (and that's the width it would have on a single line without wrapping).

Test plan

  1. Get long notification
  2. Scroll horizontally

Screenshots or screen recordings

Before:

scrolled_notification

After:

Can't do that anymore

Bugs fixed

N/A

Merge request reports

Loading