how to make a container stick to window right #3221
-
Checklist
Describe the bugin the begging it's ok , but after change blue part (a vbox), the green part becomes weird this code seperate the whole into left & right and stick right to most right
}` but after change the positions vbox, things get weird
How to reproducesee description ScreenshotsNo response Example codesee description Fyne versionsee description Go compiler versionsee description Operating systemWindows Operating system versionsee description Additional Informationsee description |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Please use GitHub discussions, or one of the other support methods mentioned on https://fyne.io/support for questions. We want to use the issue tracker for bug reports and feature requests only. I will transfer this over to a discussion. |
Beta Was this translation helpful? Give feedback.
-
You should remove all of those Instead of all your manual code I would use |
Beta Was this translation helpful? Give feedback.
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