From 3979024660adea31943b64cd51ed4f922176f4d2 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 17 Nov 2020 10:52:22 +0100 Subject: [PATCH] fix(spinbox): update cursor position in lv_spinbox_set_step fix #1907 --- CHANGELOG.md | 5 +++-- src/lv_widgets/lv_spinbox.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fd054917..4f10ab098 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## v7.7.2 (Planned to 28.11.2020) +## v7.7.2 (Planned to 17.11.2020) ### Bugfixes - fix(draw_triangle): fix polygon/triangle drawing when the order of points is counter-clockwise - fix(btnmatrix): fix setting the same map with modified pointers @@ -8,8 +8,9 @@ - label: Repair calculate back `dot` character logical error which cause infinite loop. - fix(theme_material): remove the bottom border from tabview header - fix(imgbtn) guess a the closest availabe state with valid src +- fix(spinbox) update cursor position in lv_spinbox_set_step -## v7.7.1 (04.11.2020) +## v7.7.1 (03.11.2020) ### Bugfixes - Respect btnmatrix's `one_check` in `lv_btnmatrix_set_btn_ctrl` - Gauge: make the needle images to use the styles from `LV_GAUGE_PART_PART` diff --git a/src/lv_widgets/lv_spinbox.c b/src/lv_widgets/lv_spinbox.c index 28f2de153..dcd847af9 100644 --- a/src/lv_widgets/lv_spinbox.c +++ b/src/lv_widgets/lv_spinbox.c @@ -198,6 +198,8 @@ void lv_spinbox_set_step(lv_obj_t * spinbox, uint32_t step) if(ext == NULL) return; ext->step = step; + + lv_spinbox_updatevalue(spinbox); } /**