I give up on retained for now lmao

This commit is contained in:
2025-11-14 14:39:08 -05:00
parent 218b3f14ed
commit b4947db850
5 changed files with 34 additions and 9 deletions

View File

@@ -84,6 +84,14 @@ impl<'a> PainterCtx<'a> {
return;
};
if self.widgets.label(&id) == "debug* area" {
if let Some((id, _)) = &active.resize {
println!("RESIZE: {:?}", self.widgets.label(id));
} else {
println!("RESIZE: NONE");
}
}
if let Some((rid, size)) = active.resize {
let checked = &mut HashMap::default();
let mut ctx = SizeCtx {
@@ -105,10 +113,18 @@ impl<'a> PainterCtx<'a> {
}
}
if self.widgets.label(&id) == "debug* area" {
println!("redraw proceeding");
}
let Some(active) = self.remove(id) else {
return;
};
if self.widgets.label(&id) == "debug* area" {
println!("redraw actually");
}
self.draw_inner(
active.layer,
id,
@@ -188,7 +204,7 @@ impl<'a> PainterCtx<'a> {
widgets: painter.ctx.widgets,
checked: &mut Default::default(),
screen_size: painter.ctx.screen_size,
px_dependent: painter.ctx.px_dependent,
px_dependent: &mut Default::default(),
id: painter.id,
size: UiVec2::FULL_SIZE,
}