Skip to content

Commit

Permalink
Fix layout for the clock refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jul 12, 2018
1 parent 01c49f0 commit 5445128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/apps/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (c *clockLayout) animate(canvas fyne.Canvas) {
go func() {
for {
<-tick.C
c.Layout(nil, canvas.Size())
c.Layout(nil, canvas.Size().Subtract(fyne.NewSize(theme.Padding()*2, theme.Padding()*2)))
canvas.Refresh(c.canvas)
}
}()
Expand Down

0 comments on commit 5445128

Please sign in to comment.