fyne icon indicating copy to clipboard operation
fyne copied to clipboard

Strange behavior on NewAppTabs in a container border

Open ui0ppk opened this issue 9 months ago • 0 comments

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

  1. make a new app window, set FixedSize(true)
  2. create a container.NewBorder
  3. set the 5th parameter in it a container.NewAppTabs
  4. set the app windows content to the newborder

Screenshots

main_hkaAa25RHE

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

ui0ppk avatar May 21 '24 17:05 ui0ppk