Commit 6abe790a authored by Jiří Wolker's avatar Jiří Wolker Committed by Simon Redman
Browse files

[SMS App] Make SMS character counter width only grow

SMS character counter was changing its width (both growing and
shrinking) so it also resized message field (and that caused text
reflow). This patch makes counter width only grow.

Type SMS that is long enough to make SMS character counter wider than
“Send” button. Remove the text (leave there 150 or 60 chars to keep it
visible). Character counter should keep its width.
parent b59ef618
Pipeline #18867 failed with stage
in 6 minutes and 1 second
......@@ -263,6 +263,7 @@ Kirigami.ScrollablePage
id: "charCount"
text: conversationModel.getCharCountInfo(messageField.text)
visible: text.length > 0
Layout.minimumWidth: Math.max(Layout.minimumWidth, width) // Make this label only grow, never shrink
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment