Fix NumberEdit taking too much space
This commit is contained in:
parent
6687b1f12f
commit
83b567cfd4
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue