From 83b567cfd4892ea609b373f27509f0d416fa17c7 Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Fri, 22 Aug 2025 23:37:02 -0400 Subject: [PATCH] Fix NumberEdit taking too much space --- src/window/utils.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/window/utils.rs b/src/window/utils.rs index 938eafe..e33030e 100644 --- a/src/window/utils.rs +++ b/src/window/utils.rs @@ -301,11 +301,11 @@ impl Widget for NumberEdit<'_, T> { let mut delta = None; if self.arrows { - let arrow_left = res.rect.max.x + 4.0; - let arrow_right = res.rect.max.x + 20.0; - let arrow_top = res.rect.min.y - 2.0; + let arrow_left = res.rect.max.x - 16.0; + let arrow_right = res.rect.max.x; + let arrow_top = res.rect.min.y; let arrow_middle = (res.rect.min.y + res.rect.max.y) / 2.0; - let arrow_bottom = res.rect.max.y + 2.0; + let arrow_bottom = res.rect.max.y; let top_arrow_rect = Rect { min: (arrow_left, arrow_top).into(),