fix span sizing (still some layout tho)

This commit is contained in:
2025-11-18 17:52:45 -05:00
parent 9febd03067
commit db248de8f4
5 changed files with 24 additions and 9 deletions

View File

@@ -387,6 +387,10 @@ impl<'a, 'c> Painter<'a, 'c> {
pub fn next_layer(&mut self) {
self.layer = self.ctx.layers.next(self.layer);
}
pub fn label(&self) -> &str {
&self.ctx.widgets.data(&self.id).unwrap().label
}
}
pub struct SizeCtx<'a> {
@@ -411,9 +415,9 @@ impl SizeCtx<'_> {
size
}
pub fn size<W>(&mut self, id: &WidgetId<W>) -> Size {
if let Some(&size) = self.checked.get(&id.id) {
return size;
}
// if let Some(&size) = self.checked.get(&id.id) {
// return size;
// }
self.size_inner(id.id, self.size)
}
fn size_raw(&mut self, id: Id) -> Size {