Skip to content

how to make a container stick to window right #3221

Answered by andydotxyz
dashessmith asked this question in Q&A
Discussion options

You must be logged in to vote

You should remove all of those Max containers, they do nothing (a Max with 1 item is the same as not using a container at all, widgets will always fill the space available.

Instead of all your manual code I would use container.NewBorder(nil, nil, nil, right, content), so that the right component takes up space on the right and content fills the remaining space.
https://developer.fyne.io/explore/layouts

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Jacalz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3220 on August 24, 2022 07:02.