We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ScrollContainer.Refresh() doesn't seem to work properly
Changing the content of a ScrollContainer and refresh doesn't really update the screen, for example:
something := drawSomething() container := widget.NewScrollContainer(something) updateButton := widget.NewButton("Update", func() { container.Content = drawSomethingElse() container.Refresh() })
However, if I wrap the content in another container, it works as expected, for example:
something := drawSomething() innerContainer := fyne.NewContainerWithLayout(layout.NewVBoxLayout(), something) container := widget.NewScrollContainer(innerContainer) updateButton := widget.NewButton("Update", func() { innerContainer.Objects = []fyne.CanvasObject{drawSomethingElse()} innerContainer.Refresh() })
So I doubt that something wrong with the ScrollContainer.Refresh()
The text was updated successfully, but these errors were encountered:
Update scroll container content if it is changed.
2ccac85
Fixes #1341
This is fixed on develop for testing, will be in 1.4 release
Sorry, something went wrong.
Wow you fix it so fast! Thank you very much!
e570a36
Fixes fyne-io#1341
No branches or pull requests
Describe the bug:
ScrollContainer.Refresh() doesn't seem to work properly
Example code:
Changing the content of a ScrollContainer and refresh doesn't really update the screen, for example:
However, if I wrap the content in another container, it works as expected, for example:
So I doubt that something wrong with the ScrollContainer.Refresh()
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: