When modifiying the text of a TabItem with a longer text, the underline blue bar (tab select mark) length doen't update to cover the entire tabitem length, until the item is clicked.
To Reproduce:
Run the code, and click the button
Screenshots:
Example code:
package main
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("TEST")
tab := container.NewDocTabs()
tab.Append(&container.TabItem{
Text: "Test",
Content: container.NewCenter(
widget.NewButton("Set Text", func() {
tab.Items[0].Text = "Longer text to show the bug"
tab.Refresh()
}),
),
})
w.SetContent(tab)
w.Resize(fyne.NewSize(800, 500))
w.CenterOnScreen()
w.ShowAndRun()
}
Device (please complete the following information):
Describe the bug:
When modifiying the text of a TabItem with a longer text, the underline blue bar (tab select mark) length doen't update to cover the entire tabitem length, until the item is clicked.
To Reproduce:
Run the code, and click the button
Screenshots:
Example code:
Device (please complete the following information):