Skip to content

Max doesnt max as expected #3518

Answered by Jacalz
emdete asked this question in Q&A
Dec 30, 2022 · 5 comments · 12 replies
Discussion options

You must be logged in to vote

The max layout does not do what you want it to do in this case. A container can only layout its items within its own area, not outside of it. The max layout basically allows you to stack items on top of each other, filling the space they are given, but they will not fill all the remaining space outside of the container.

In this case, I expect that a border layout is more like what you want. You can place content at the edge positions and then the fifth argument will fill all the remaining space.

I suggest reading through https://developer.fyne.io/explore/layouts and I especially think that you should have a look at https://www.youtube.com/watch?v=LWn1403gY9E as it should help getting a be…

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
3 replies
@emdete
Comment options

@Jacalz
Comment options

Jacalz Dec 30, 2022
Collaborator

@Jacalz
Comment options

Jacalz Dec 30, 2022
Collaborator

Answer selected by Jacalz
Comment options

You must be logged in to vote
4 replies
@Jacalz
Comment options

Jacalz Dec 30, 2022
Collaborator

@andydotxyz
Comment options

@Jacalz
Comment options

Jacalz Dec 30, 2022
Collaborator

@Jacalz
Comment options

Jacalz Dec 30, 2022
Collaborator

Comment options

You must be logged in to vote
4 replies
@Jacalz
Comment options

Jacalz Dec 30, 2022
Collaborator

@emdete
Comment options

@Jacalz
Comment options

Jacalz Dec 30, 2022
Collaborator

@andydotxyz
Comment options

Comment options

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

Jacalz Dec 30, 2022
Collaborator

Comment options

You must be logged in to vote
0 replies
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