Fix NumberEdit taking too much space

This commit is contained in:
Simon Gellis 2025-08-22 23:37:02 -04:00
parent 6687b1f12f
commit 83b567cfd4
1 changed files with 4 additions and 4 deletions

View File

@ -301,11 +301,11 @@ impl<T: Number> 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(),