Repository navigation
Dynamically resize window based on content #1386
Unanswered
JacksStuff0905
asked this question in
Q&A
Replies: 1 comment
|
Sorry for the necro posting, but I just found this question and wanted to give a proper answer. This issue is that labels, by default, will truncate text that does not fit within the width constraints of the label. Since nothing in the widget tree you provided enforces a constant width constraint, the label tries to fit the text within a box with width 0 (or a very small value, at least), which it can't for strings with more than one character, so the text gets truncated. I found two fixes for this:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have just started using eww and I wanted to show a simple widget that resizes to fit the label that is inside. This is the
eww.yuckfile for doing that:The problem is that the widget shows as a tiny box containing only
...(which I'm guessing is a truncated version of the label) and the only way to fix it is to set a constant width with the:geometryproperty or via CSS.Is this the intended behavior or am I missing something?
All reactions