diff --git a/containerbox.go b/containerbox.go index bfaafcb..378bbb9 100644 --- a/containerbox.go +++ b/containerbox.go @@ -104,7 +104,7 @@ func (this *containerBox) Add (child tomo.Object) { this.invalidateMinimum() } -func (this *containerBox) Delete (child tomo.Object) { +func (this *containerBox) Remove (child tomo.Object) { box := assertAnyBox(child.GetBox()) index := indexOf(this.children, tomo.Box(box)) if index < 0 { return }