fix(imagebutton): fix imagebutton not having default size (#5283)

Signed-off-by: lhdjply <lhdjply@126.com>
This commit is contained in:
lhdjply
2024-01-11 15:33:02 +08:00
committed by GitHub
parent a4f0ba5f5d
commit 9af0e16da4
+2
View File
@@ -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,