Skip to content

Commit

Permalink
Ensure tab children are resized before being shown (#1331)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmscott committed Sep 21, 2020
1 parent 1a163ac commit 5ba08c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/tabcontainer.go
Expand Up @@ -301,14 +301,14 @@ func (r *tabContainerRenderer) Refresh() {
} else {
current := r.container.current
if current >= 0 && current < len(r.objects) && !r.objects[current].Visible() {
r.Layout(r.container.Size())
for i, o := range r.objects {
if i == current {
o.Show()
} else {
o.Hide()
}
}
r.Layout(r.container.Size())
}
for i, button := range r.tabBar.Objects {
if i == current {
Expand Down

0 comments on commit 5ba08c1

Please sign in to comment.