From b0222d206e6c0775d0f75a470bdca355251e7713 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Tue, 29 Jun 2021 15:11:33 -0700 Subject: [PATCH] revert 'fix' for pum position --- src/editor/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor/mod.rs b/src/editor/mod.rs index 2f89cf5..9ef7488 100644 --- a/src/editor/mod.rs +++ b/src/editor/mod.rs @@ -39,9 +39,9 @@ impl WindowAnchor { ) -> (f64, f64) { match self { WindowAnchor::NorthWest => (grid_left, grid_top), - WindowAnchor::NorthEast => (grid_left + width as f64, grid_top), - WindowAnchor::SouthWest => (grid_left, grid_top + height as f64), - WindowAnchor::SouthEast => (grid_left + width as f64, grid_top + height as f64), + WindowAnchor::NorthEast => (grid_left - width as f64, grid_top), + WindowAnchor::SouthWest => (grid_left, grid_top - height as f64), + WindowAnchor::SouthEast => (grid_left - width as f64, grid_top - height as f64), } } }