Ignore empty position elements

This commit is contained in:
Charles Gagnon
2025-02-25 17:47:33 -05:00
parent 6e74ef146f
commit 923e5dce7f

View File

@@ -537,9 +537,12 @@ export const Panel = GObject.registerClass(
let allocationMap = this.allocationMap[pos.element]
if (allocationMap.actor) {
allocationMap.actor.visible = pos.visible
let considerActor =
pos.visible && allocationMap.actor.get_children().length
if (!pos.visible) {
allocationMap.actor.visible = considerActor
if (!considerActor) {
return
}