mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
fix: crash in debug mode
This commit is contained in:
parent
695162ddd0
commit
68a69992e7
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ impl crate::app::App {
|
|||
pub fn top_panel(&mut self, ctx: &egui::Context) {
|
||||
debug!("App | Rendering TOP tabs");
|
||||
TopBottomPanel::top("top").show(ctx, |ui| {
|
||||
let width = (self.size.x - (SPACE * 18.0)) / 8.0;
|
||||
let width = ((self.size.x - (SPACE * 18.0)) / 8.0).max(0.0);
|
||||
let height = self.size.y / 15.0;
|
||||
ui.add_space(4.0);
|
||||
ui.horizontal(|ui| {
|
||||
|
|
Loading…
Reference in a new issue