fyne
fyne copied to clipboard
Strange behavior on NewAppTabs in a container border
Checklist
- [X] I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
- [X] This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
container.NewAppTab inside a container.NewBorder's center causes the "more" button to take up the whole app tabs.
How to reproduce
- make a new app window, set FixedSize(true)
- create a container.NewBorder
- set the 5th parameter in it a container.NewAppTabs
- set the app windows content to the newborder
Screenshots
Example code
a := app.New()
popup := a.NewWindow("testing")
popup_size := fyne.NewSize(500, 250)
popup.SetFixedSize(true)
popup.Resize(popup_size)
settings_tabs := container.NewAppTabs(
container.NewTabItem(" 1 ", widget.NewLabel("test 1")),
container.NewTabItem(" 2 ", widget.NewLabel("test 2")),
container.NewTabItem(" 3 ", widget.NewLabel("test 3")),
container.NewTabItem(" 4 ", widget.NewLabel("test 4")),
)
settings_tabs.SetTabLocation(container.TabLocationLeading)
popup_content := container.NewBorder(nil, nil, nil, nil, settings_tabs)
popup.SetContent(popup_content)
Fyne version
2.4.5
Go compiler version
1.20
Operating system and version
Windows 10 IoT Enterprise LTSC
Additional Information
No response