Skip to content

Commit

Permalink
Window: fix positioning bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mdgaziur committed Jan 8, 2023
1 parent f86ce3d commit 42d16a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/findex/src/gui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ impl GUI {
let screen_width = monitor_geo.width() as f32;

window.move_(
(screen_width * 0.5 - (window.allocation().width() / 2) as f32) as i32
+ monitor_geo.x(),
(screen_height * 0.3) as i32 + monitor_geo.y(),
(screen_width * 0.5 - (window.allocation().width() / 2) as f32) as i32,
(screen_height * 0.3) as i32,
);
}

Expand Down

0 comments on commit 42d16a1

Please sign in to comment.