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

@@ -181,7 +181,7 @@ impl Ui {
pub fn window_region<W>(&self, id: &impl IdLike<W>) -> Option<PixelRegion> {
let region = self.data.active.get(&id.id())?.region;
Some(region.to_screen(self.data.output_size))
Some(region.to_px(self.data.output_size))
}
pub fn debug(&self, label: &str) {
@@ -192,6 +192,10 @@ impl Ui {
}
println!("\"{label}\" {{");
println!(" region: {}", inst.region);
println!(
" pixel region: {}",
inst.region.to_px(self.data.output_size)
);
println!(" desired_size: {}", inst.desired_size);
println!("}}");
}