mistakes were fixed and sins were committed

This commit is contained in:
iris committed 2025-11-20 00:18:30 -05:00
1 parent db248de8f4
commit a952b34a72
18 files changed
+418 -142

No files matched your search

+6 -2
View File
@@ -91,8 +91,12 @@ impl Widget for Text {
painter.texture_within(&tex.handle, region);
}
fn desired_size(&mut self, ctx: &mut SizeCtx) -> Size {
Size::abs(self.update_buf(ctx).size())
fn desired_width(&mut self, ctx: &mut SizeCtx) -> Len {
Len::abs(self.update_buf(ctx).size().x)
}
fn desired_height(&mut self, ctx: &mut SizeCtx) -> Len {
Len::abs(self.update_buf(ctx).size().y)
}
}