Rendering my disgusting font. using it in a few places. wow its hideous

This commit is contained in:
Dustin Swan 2026-02-23 23:47:58 -07:00
parent 6fe94ddfb2
commit 169b067050
No known key found for this signature in database
GPG key ID: 30D46587E2100467
5 changed files with 59 additions and 19 deletions

View file

@ -228,8 +228,13 @@ export function _measure(ui: UIValue): { width: number, height: number } {
}
}
case 'positioned':
return measure(ui.child);
case 'positioned': {
const childSize = measure(ui.child);
return {
width: ui.x + childSize.width,
height: ui.y + childSize.height,
};
}
case 'stack': {
let maxWidth = 0;