Skip to content

DocTabs Flicker/Move on Click #5645

Open
@drunlade

Description

@drunlade

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

When clicking on the tabs, they either flicker or move on the tab bar.

Screen.Recording.2025-04-03.at.15.09.11.mov

I did at one point or another have them stay in the wrong place on the tab bar, which is when i gave up and went back to AppTabs.

How to reproduce

Use attached code.
Run program.
Click the second tab a whole bunch.

Screenshots

No response

Example code

func main() {
	a := app.New()
	w := a.NewWindow("Fyne")
	w.SetContent(
		container.NewDocTabs(
			container.NewTabItem("Tab 1", container.NewCenter()),
			container.NewTabItem("Tab 2", container.NewCenter()),
			container.NewTabItem("Tab 3", container.NewCenter()),
		),
	)
	w.Resize(fyne.NewSize(800, 600))
	w.ShowAndRun()
}

Fyne version

2.5.5

Go compiler version

go1.24.1 darwin/arm64

Operating system and version

MacOS Sequoia 15.4

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    information-neededFurther information is requestedunverifiedA bug that has been reported but not verified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions