mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-20 12:32:18 +08:00
fix(imagebutton): fix imagebutton not having default size (#5283)
Signed-off-by: lhdjply <lhdjply@126.com>
This commit is contained in:
@@ -39,6 +39,8 @@ static void update_src_info(lv_imagebutton_src_info_t * info, const void * src);
|
||||
|
||||
const lv_obj_class_t lv_imagebutton_class = {
|
||||
.base_class = &lv_obj_class,
|
||||
.width_def = LV_SIZE_CONTENT,
|
||||
.height_def = LV_SIZE_CONTENT,
|
||||
.instance_size = sizeof(lv_imagebutton_t),
|
||||
.constructor_cb = lv_imagebutton_constructor,
|
||||
.event_cb = lv_imagebutton_event,
|
||||
|
||||
Reference in New Issue
Block a user