fix(imagebutton): fix the example (#5719)

This commit is contained in:
Gabor Kiss-Vamosi
2024-02-22 14:09:33 +01:00
committed by GitHub
parent 1ea51ad616
commit 3a60689b8a
3 changed files with 12 additions and 19 deletions

View File

@@ -31,6 +31,7 @@ void lv_example_imagebutton_1(void)
lv_obj_add_style(imagebutton1, &style_def, 0);
lv_obj_add_style(imagebutton1, &style_pr, LV_STATE_PRESSED);
lv_obj_set_width(imagebutton1, 100);
lv_obj_align(imagebutton1, LV_ALIGN_CENTER, 0, 0);
/*Create a label on the image button*/