From 58802c4d0bed672c88b792be9dc04cec21a76108 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 27 Jun 2024 12:55:16 +0300 Subject: [PATCH] fix: resize corners --- src/gui/app.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/app.rs b/src/gui/app.rs index 8fb1758..955a86f 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -332,9 +332,8 @@ impl App { rect }), ResizeDirection::NorthEast => ("ne", CursorIcon::ResizeNorthEast, { - rect.min.y += Root::WINDOW_FRAME_MARGIN * 2.0; rect.min.x = rect.max.x - Root::WINDOW_FRAME_MARGIN * 2.0; - rect.max.y = rect.min.y; + rect.max.y = Root::WINDOW_FRAME_MARGIN * 2.0; rect }), ResizeDirection::SouthEast => ("se", CursorIcon::ResizeSouthEast, { @@ -344,7 +343,6 @@ impl App { }), ResizeDirection::SouthWest => ("sw", CursorIcon::ResizeSouthWest, { rect.min.y = rect.max.y - Root::WINDOW_FRAME_MARGIN * 2.0; - rect.max.y = rect.min.y; rect.max.x = rect.min.x + Root::WINDOW_FRAME_MARGIN * 2.0; rect }),