Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior on NewAppTabs in a container border #4859

Open
2 tasks done
ui0ppk opened this issue May 21, 2024 · 0 comments
Open
2 tasks done

Strange behavior on NewAppTabs in a container border #4859

ui0ppk opened this issue May 21, 2024 · 0 comments
Labels
unverified A bug that has been reported but not verified

Comments

@ui0ppk
Copy link

ui0ppk commented May 21, 2024

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • 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 ui0ppk added the unverified A bug that has been reported but not verified label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

1 participant