Vertical text alignment issue with word-wrap #3479
Unanswered
a-erlandsen-z
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Thanks for reporting this issue, this is clearly a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We just released Slint 1.2.1 that should produce hopefully what you want in this case. (Especially #3488) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I want to vertically align text within a box.
I also want to have
word-wrap
andTextOverflow.elide
.The issue I have is this: When the text is short enough to fit within the box, text is vertically aligned when vertical alignment is set to
TextVerticalAlignment.center
. But when the text is too long (and "..." is added at the end), text is only vertically aligned when vertical-alignment is set toTextVerticalAlignment.top
.Seems like a bug to me?
Here is a sample of what I'm doing:
This will align poorly (first line is moved up and be clipped at the top). To get this properly vertically aligned, either the text needs to be shorter, or vertical alignment needs to be set to
top
. But if set totop
it will not be properly aligned when text is shorter. And the whole point here is that the text is dynamic (different languages), so the length of the text string will vary.Beta Was this translation helpful? Give feedback.
All reactions