Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c409bc1a1e | |||
| 6a2dc36140 |
@@ -119,10 +119,14 @@ func (this *containerBox) Insert (child, before tomo.Object) {
|
|||||||
|
|
||||||
beforeBox := assertAnyBox(before.GetBox())
|
beforeBox := assertAnyBox(before.GetBox())
|
||||||
index := indexOf(this.children, tomo.Box(beforeBox))
|
index := indexOf(this.children, tomo.Box(beforeBox))
|
||||||
if index < 0 { return }
|
|
||||||
|
|
||||||
|
if index < 0 {
|
||||||
|
this.children = append(this.children, tomo.Box(box))
|
||||||
|
} else {
|
||||||
|
this.children = insert(this.children, index, tomo.Box(box))
|
||||||
|
}
|
||||||
box.setParent(this)
|
box.setParent(this)
|
||||||
this.children = insert(this.children, index, tomo.Box(box))
|
|
||||||
this.invalidateLayout()
|
this.invalidateLayout()
|
||||||
this.invalidateMinimum()
|
this.invalidateMinimum()
|
||||||
}
|
}
|
||||||
|
|||||||
10
event.go
10
event.go
@@ -339,11 +339,13 @@ func (window *window) handleMotionNotify (
|
|||||||
}
|
}
|
||||||
|
|
||||||
underneath := window.boxUnder(image.Pt(x, y), eventCategoryMouse)
|
underneath := window.boxUnder(image.Pt(x, y), eventCategoryMouse)
|
||||||
window.hover(underneath)
|
if underneath != nil {
|
||||||
|
window.hover(underneath)
|
||||||
if !handled {
|
if !handled {
|
||||||
underneath.handleMouseMove()
|
underneath.handleMouseMove()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (window *window) compressExpose (
|
func (window *window) compressExpose (
|
||||||
|
|||||||
Reference in New Issue
Block a user