Description
I am trying to remove margin in nested menu.
What LVGL version are you using?
LVGL version: 8.3.10
What do you want to achieve?
All menu in same position.
What have you tried so far?
lv_obj_set_style_pad_all(sidebar_page, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_pad_all(main_page, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
// hide header
lv_obj_add_flag(lv_menu_get_main_header(menu), LV_OBJ_FLAG_HIDDEN);
lv_obj_add_flag(lv_menu_get_sidebar_header(menu), LV_OBJ_FLAG_HIDDEN);
Code to reproduce
/*You code here*/