fixed element map

This commit is contained in:
Djeeberjr 2022-03-04 17:46:44 +01:00
parent 33c9e3ab6c
commit 1aa93574c8

View File

@ -160,7 +160,7 @@ class ReactiveUI {
});
canvas.combine(childRender, writePoint);
elementMap.set(new Rect(writePoint,{x: childRender.maxWidth(), y: writePoint.y + childRender.hight()}),child);
elementMap.set(new Rect(writePoint,{x: childRender.maxWidth() + writePoint.x, y: writePoint.y + (childRender.hight() - 1)}),child);
writePoint = {x: 0, y: writePoint.y + childRender.hight()};
}