Skip to content

Commit

Permalink
Fix layout issue when adding items at runtime
Browse files Browse the repository at this point in the history
Fixes glitch with layout in blog example
  • Loading branch information
andydotxyz committed Sep 3, 2018
1 parent 126d1ac commit cc7aea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/canvas.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (c *eflCanvas) refreshObject(o, o2 fyne.CanvasObject) {

// TODO a better solution here as objects are added to the UI
if obj == nil {
obj = c.buildObject(o, o2, fyne.NewPos(0, 0)) // TODO fix offset
obj = c.buildObject(o, o2, c.offsets[o])
}
pos := c.offsets[o].Add(o.CurrentPosition())
size := o.CurrentSize()
Expand Down

0 comments on commit cc7aea9

Please sign in to comment.