Skip to content

Commit

Permalink
Fixed scrollbar disappearing after changing content
Browse files Browse the repository at this point in the history
  • Loading branch information
s77rt committed Jun 29, 2021
1 parent 16a6352 commit 4d93bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/widget/scroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func (r *scrollContainerRenderer) MinSize() fyne.Size {
func (r *scrollContainerRenderer) Refresh() {
if len(r.BaseRenderer.Objects()) == 0 || r.BaseRenderer.Objects()[0] != r.scroll.Content {
// push updated content object to baseRenderer
r.BaseRenderer.SetObjects([]fyne.CanvasObject{r.scroll.Content})
r.BaseRenderer.Objects()[0] = r.scroll.Content
}
if r.oldMinSize == r.scroll.Content.MinSize() && r.oldMinSize == r.scroll.Content.Size() &&
(r.scroll.Size().Width <= r.oldMinSize.Width && r.scroll.Size().Height <= r.oldMinSize.Height) {
Expand Down

0 comments on commit 4d93bbb

Please sign in to comment.