Skip to content

Commit 4866770

Browse files
committed
fixed an issue with zIndexing
1 parent ce8da66 commit 4866770

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/CoreNode.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,6 +1933,12 @@ export class CoreNode extends EventEmitter {
19331933
children.push(node);
19341934

19351935
if (min !== max || (zIndex !== min && zIndex !== max)) {
1936+
if (zIndex < min) {
1937+
this.zIndexMin = zIndex;
1938+
}
1939+
if (zIndex > max) {
1940+
this.zIndexMax = zIndex;
1941+
}
19361942
this.zIndexSortList.push(node);
19371943
this.setUpdateType(UpdateType.SortZIndexChildren);
19381944
}

0 commit comments

Comments
 (0)