fix(layout) fix missing layout recalculation on screen

This commit is contained in:
Gabor Kiss-Vamosi
2021-04-23 14:06:50 +02:00
parent a6ac99baa9
commit 9d6d0094f5
3 changed files with 8 additions and 5 deletions

View File

@@ -36,6 +36,8 @@ void lv_example_checkbox_1(void)
lv_obj_add_state(cb, LV_STATE_CHECKED | LV_STATE_DISABLED);
lv_checkbox_set_text(cb, "Melon");
lv_obj_add_event_cb(cb, event_handler, LV_EVENT_ALL, NULL);
lv_obj_update_layout(cb);
}
#endif