:paint: ui: fix the checkbox getting hidden

main
_ 2023-09-11 22:44:47 -05:00
parent ef2e803c43
commit 039518cde6
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ impl eframe::App for App {
}
ui.heading (format! ("{0}, {1}, {2}", self.camera_fps, self.gui_fps, self.latency.as_millis ()));
let available = ui.available_size();
let available = ui.available_size() - egui::Vec2::new (0.0, 20.0);
let tex_size = egui::Vec2::new (texture.size()[0] as f32, texture.size()[1] as f32);
let scaled_width = available.y * tex_size.x / tex_size.y;
let scaled_height = available.x * tex_size.y / tex_size.x;