From 039518cde6b50561398ab108d23c142727776e83 Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Mon, 11 Sep 2023 22:44:47 -0500 Subject: [PATCH] :paint: ui: fix the checkbox getting hidden --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1984e93..dae57b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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;