lvgl: Spinbox problems
Describe the bug Errors in spinbox mechanics
To Reproduce I can’t reproduce the error on “PC emu” because “spinbox” does not support the mouse wheel. I’m using an encoder.
lv_spinbox_set_range(spinbox, 1, 480);
After initializing “spinbox” displays “+”. Disappears when the value changes.
If we leave the default range (-99999 - 99999) and in lv_spinbox_set_range () digit_count for example 3.
Initial value 0. I see “+000” on display.
I increase the value of the first digit by 12, on display “+012”.
I press the encoder button.
“gui: C: /ESP/lvgl/src/lv_objx/lv_ta.c 250 Text area: line break ignored in one-line mode”
The cursor moves to the “+” sign.
I turn the encoder to the right and the digit to the right of the cursor will increase.
I see “+100” on the display.
Log from the event “LV_EVENT_VALUE_CHANGED”
“gui: Value: 10012”
Expected behavior 1. lv_spinbox_set_range should invoke lv_spinbox_updatevalue()
The “digit_count” setting in lv_spinbox_set_digit_format() should check or change the “range_min” and “range_max” values
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (15 by maintainers)
Fixed by #1481 so this issue can be closed.
Thank you for the fix @Wielebny666