Skip to content

Commit

Permalink
fix(spinbox): set its default width in its class
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Feb 22, 2022
1 parent bb03fb1 commit 3d92972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/draw/sw/lv_draw_sw_gradient.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#endif

#if LV_GRAD_CACHE_DEF_SIZE != 0 && LV_GRAD_CACHE_DEF_SIZE < 256
#error "LV_GRAD_CACHE_DEF_SIZE is too small"
#error "LV_GRAD_CACHE_DEF_SIZE is too small"
#endif

/**********************
Expand Down
2 changes: 1 addition & 1 deletion src/extra/widgets/spinbox/lv_spinbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ static void lv_spinbox_updatevalue(lv_obj_t * obj);
const lv_obj_class_t lv_spinbox_class = {
.constructor_cb = lv_spinbox_constructor,
.event_cb = lv_spinbox_event,
.width_def = LV_DPI_DEF,
.instance_size = sizeof(lv_spinbox_t),
.editable = LV_OBJ_CLASS_EDITABLE_TRUE,
.base_class = &lv_textarea_class
Expand Down Expand Up @@ -336,7 +337,6 @@ static void lv_spinbox_constructor(const lv_obj_class_t * class_p, lv_obj_t * ob

lv_textarea_set_one_line(obj, true);
lv_textarea_set_cursor_click_pos(obj, true);
lv_obj_set_width(obj, LV_DPI_DEF);

lv_spinbox_updatevalue(obj);

Expand Down

0 comments on commit 3d92972

Please sign in to comment.