Skip to content

InlineMessage: Better multiline calculation

Ismael Asensio requested to merge work/iasensio/inlinemessage-multiline into master

Extract the remainingWidth calculation as a property, so it can be used to know when the text is multiline or single line without incurring in a binding loop.

This fixes a bad layout when the message was first shown on certain situations, such as multimedia/elisa!256 (comment 454660)

BEFORE AFTER
elisaconfig-befor elisaconfig-after

It's working fine for me in Kirigami gallery and the common places I know (those which did work before and those which didn't), but as with any of these components, any extra test is welcomed. There was another failing case I cannot remember right now.

Merge request reports

Loading