From 365682e56c28884bb1bd9d71e56f600c512f7db3 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Mon, 20 Jun 2022 00:32:37 +1000
Subject: Avoid adding dom-nodes for hidden-ancestor other-children

---
 src/components/Tile.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/Tile.vue')

diff --git a/src/components/Tile.vue b/src/components/Tile.vue
index 59e0839..9bbff51 100644
--- a/src/components/Tile.vue
+++ b/src/components/Tile.vue
@@ -43,7 +43,7 @@ export default defineComponent({
 			// If not displaying with overflow, return layout node children
 			let children = this.layoutNode.children;
 			if (!this.isOverflownRoot){
-				return children;
+				return children.filter(n => !n.hidden || n.hiddenWithVisibleChild);
 			}
 			// Return visible children
 			let firstIdx = children.length - 1;
-- 
cgit v1.2.3

