diff --git a/src/lib/ui/Canvas.hx b/src/lib/ui/Canvas.hx index 8e18479..52e913b 100644 --- a/src/lib/ui/Canvas.hx +++ b/src/lib/ui/Canvas.hx @@ -46,7 +46,7 @@ abstract Canvas(Array>) to Array>{ } } - public function hight():Int { + public function height():Int { return this.length; } @@ -64,7 +64,7 @@ abstract Canvas(Array>) to Array>{ public function getBounds(): Rect { return new Rect({x:0,y:0},{ x: maxWidth(), - y: hight() + y: height() }); } } diff --git a/src/lib/ui/reactive/ReactiveUI.hx b/src/lib/ui/reactive/ReactiveUI.hx index 314538f..f8e5d0f 100644 --- a/src/lib/ui/reactive/ReactiveUI.hx +++ b/src/lib/ui/reactive/ReactiveUI.hx @@ -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};