sized spans!

This commit is contained in:
2025-08-28 18:25:59 -04:00
parent d7d67e4ed3
commit a0e6623abe
7 changed files with 52 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ impl Widget for Text {
// reuse TextureHandle
}
fn size(&mut self, ctx: SizeCtx) -> Vec2 {
fn size(&mut self, ctx: &mut SizeCtx) -> Vec2 {
let (handle, offset) =
ctx.text
.draw(&mut self.buf, &self.content, &self.attrs, ctx.textures);