Skip to content

Commit

Permalink
Fix horizontal only scroll refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Dec 24, 2019
1 parent df27ecb commit 3398cb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ More detailed release notes can be found on the [releases page](https://github.c
* Shadows disappeared when theme changes (#589)
* iOS apps could stop rendering after many refreshes (#584)
* Fyne package could fail on Windows (#586)
* Horizontal only scroll container may not refresh using scroll wheel


## 1.2 - 12 December 2019
Expand Down
3 changes: 2 additions & 1 deletion widget/scroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ func (r *scrollContainerRenderer) updatePosition() {
Renderer(r.vertArea).Layout(r.scroll.size)
Renderer(r.horizArea).Layout(r.scroll.size)

canvas.Refresh(r.vertArea) // this is required to force the canvas to update, we have no "Redraw()"
canvas.Refresh(r.vertArea) // this is required to force the canvas to update, we have no "Redraw()"
canvas.Refresh(r.horizArea) // this is required like above but if we are horizontal
}

// ScrollContainer defines a container that is smaller than the Content.
Expand Down

0 comments on commit 3398cb7

Please sign in to comment.