Skip to content
Discussion options

You must be logged in to vote

I believe the default width of a Label, in a horizontal anyway, is the width of the container. Before I give an example of what I'm seeing, I would also highlight that you're throwing dock into the mix too, which complicates matters. You may want to glance over the docking guide again to make sure this is what you want to be using. My understanding is that when you dock something you pretty much move it into its own isolated style space (for want of a better term) -- size and so on will be style in a way that isn't relative to other widgets. I would imagine this would explain why you're finding that 1fr isn't doing what you'd expect; you have one Label docked left, one docked right, and a…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by davep
Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants