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

AppTab does not display blue indicator line if you create it empty and then Append items to it later. #4809

Closed
2 tasks done
smanning-ds opened this issue Apr 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@smanning-ds
Copy link

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

AppTab is not rendered correctly if you create it empty and then Append items to it later.
In the first screenshot, you may notice that there is no blue indicator line under the first AppTab.
If I create with an initial dummy item as follows, I get the blue line as per the second screenshot.

How to reproduce

  1. Create empty AppTab at := container.NewAppTabs()
  2. Add items using Append method.
  3. Add AppTab to window canvas and run
  4. Click through tabs and observe that there is no blue line.
  5. Amend code to include a dummy tab when creating and observe that there is now a blue line.

Screenshots

image (4)
image (5)

Example code

envTabs := container.NewAppTabs()
...
	for _, env := range environ.Get() {
		envTabs.Append(
			container.NewTabItem(env.Id,
				widget.NewLabel(env.Longname),
			),
		)	
	}
...
	w.SetContent(container.NewVBox(
		widget.NewLabel("Test Environment Utilities"),
		envTabs,
		resTabs,
	))

Fyne version

2.4.4

Go compiler version

1.21.3

Operating system and version

macOS Big Sur 11.7.7

Additional Information

No response

@smanning-ds smanning-ds added the unverified A bug that has been reported but not verified label Apr 25, 2024
Dorbmon added a commit to Dorbmon/fyne that referenced this issue Apr 26, 2024
@dweymouth dweymouth added bug Something isn't working and removed unverified A bug that has been reported but not verified labels Apr 26, 2024
@dweymouth
Copy link
Contributor

Fixed on develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants