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

+11 -3
View File
@@ -12,11 +12,19 @@ impl Widget for WidgetPtr {
}
}
fn desired_size(&mut self, ctx: &mut SizeCtx) -> Size {
fn desired_width(&mut self, ctx: &mut SizeCtx) -> Len {
if let Some(id) = &self.inner {
ctx.size(id)
ctx.width(id)
} else {
Size::ZERO
Len::ZERO
}
}
fn desired_height(&mut self, ctx: &mut SizeCtx) -> Len {
if let Some(id) = &self.inner {
ctx.height(id)
} else {
Len::ZERO
}
}
}