ContainerBox uses slices.Remove correctly
This commit is contained in:
parent
dfc5c4514a
commit
6d071bd1d3
@ -65,7 +65,7 @@ func (this *containerBox) Remove (child tomo.Object) {
|
|||||||
if index < 0 { return }
|
if index < 0 { return }
|
||||||
|
|
||||||
box.setParent(nil)
|
box.setParent(nil)
|
||||||
this.children = slices.Delete(this.children, index, index)
|
this.children = slices.Delete(this.children, index, index + 1)
|
||||||
this.invalidateLayout()
|
this.invalidateLayout()
|
||||||
this.invalidateMinimum()
|
this.invalidateMinimum()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user