fix span sizing (still some layout tho)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user