sizing actually working correctly now

This commit is contained in:
2025-09-16 17:31:54 -04:00
parent b48acccb8d
commit f9097807a2
17 changed files with 333 additions and 194 deletions

View File

@@ -10,8 +10,8 @@ impl Widget for Image {
painter.texture(&self.handle);
}
fn get_size(&mut self, _: &mut SizeCtx) -> Vec2 {
self.handle.size()
fn desired_size(&mut self, _: &mut SizeCtx) -> UiVec2 {
UiVec2::abs(self.handle.size())
}
}