Skip to content

kcms/notifications: Fix delegate's minimum size

The RowLayout within the delegate will not shrink below its content's implicit width, even when it overflows the external width constraint.

We can use some Layout properties in a creative way to reduce this, so that the TextField can shrink but keeps its regular size when the space available is wider.

BEFORE AFTER
notifications-shrink-before notifications-shrink-after

BUG: 481433
FIXED-IN: 6.0

This RowLayout sizing issue has been the bane of my existence for a long time, here and in other places, and none of my previous attempts worked.
It seems I just got the eureka 💡 moment today. Thanks for the push!

Merge request reports