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