Fixed zero bounds children resulting in NaN group bounds.

This commit is contained in:
Lasse Wallentin
2019-10-23 11:15:20 +02:00
parent 713c3d71c4
commit 81f930a2ab
2 changed files with 16 additions and 3 deletions

View File

@@ -507,8 +507,7 @@ export abstract class Container<ChildType extends Node> extends Node<
break;
}
}
if (hasVisible) {
if (hasVisible && minX !== undefined) {
selfRect = {
x: minX,
y: minY,