auto scrolling to focused windows
This commit is contained in:
parent
5f592f40bf
commit
44015e58b1
2 changed files with 41 additions and 6 deletions
|
|
@ -89,7 +89,6 @@ function renderUI(ui: UIValue, ctx: CanvasRenderingContext2D, x: number, y: numb
|
|||
let offsetX = 0;
|
||||
for (const child of ui.children) {
|
||||
const size = measure(child);
|
||||
console.log("row child: ", child.kind, "width: ", size.width)
|
||||
renderUI(child, ctx, x + offsetX, y);
|
||||
offsetX += measure(child).width + (ui.gap || 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue