feat(event) add LV_EVENT_LAYOUT_CHANGED and fix tabview's tab position on resize

This commit is contained in:
Gabor Kiss-Vamosi
2021-05-20 07:40:48 +02:00
parent b06a1f35f3
commit a63ab1eef1
5 changed files with 26 additions and 15 deletions

View File

@@ -14,9 +14,9 @@ void lv_example_obj_1(void)
lv_style_set_shadow_spread(&style_shadow, 5);
lv_style_set_shadow_color(&style_shadow, lv_palette_main(LV_PALETTE_BLUE));
lv_obj_t * obj3;
obj3 = lv_obj_create(lv_scr_act());
lv_obj_add_style(obj3, &style_shadow, 0);
lv_obj_align(obj3, LV_ALIGN_CENTER, 60, 30);
lv_obj_t * obj2;
obj2 = lv_obj_create(lv_scr_act());
lv_obj_add_style(obj2, &style_shadow, 0);
lv_obj_align(obj2, LV_ALIGN_CENTER, 60, 30);
}
#endif