fixed typo

This commit is contained in:
Djeeberjr 2022-05-01 00:06:08 +02:00
parent f7e7059641
commit f21dd48106
2 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ abstract Canvas(Array<Array<Pixel>>) to Array<Array<Pixel>>{
}
}
public function hight():Int {
public function height():Int {
return this.length;
}
@ -64,7 +64,7 @@ abstract Canvas(Array<Array<Pixel>>) to Array<Array<Pixel>>{
public function getBounds(): Rect {
return new Rect({x:0,y:0},{
x: maxWidth(),
y: hight()
y: height()
});
}
}

View File

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