Settings: diff-lock row's switch box aligned START - END collapsed its content width and clipped the Inverted switch
Firmware / build (push) Successful in 6m49s

This commit is contained in:
2026-09-29 15:41:19 +02:00
parent b431cdfa16
commit 9bfcd99dee
+4 -1
View File
@@ -838,7 +838,10 @@ static void buildSystemPage(lv_obj_t* page) {
// two switches on the right: polarity ("Inverted") and on/off; the page has no room for a fifth row
lv_obj_t* diff_right = box(right, LV_FLEX_FLOW_ROW);
lv_obj_set_size(diff_right, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
lv_obj_set_flex_align(diff_right, LV_FLEX_ALIGN_END, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER);
// START, not END: with END, LVGL 8's content-size pass measures only the last child
// (the earlier ones sit at negative x) and clips "Inverted" away - seen on the board.
// The row's SPACE_BETWEEN already pushes this box to the right edge.
lv_obj_set_flex_align(diff_right, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER);
lv_obj_set_style_pad_column(diff_right, 12, 0);
label(diff_right, "Inverted", &lv_font_montserrat_20, UI_COL_MUTED);
g_sys_diff_inv = toggle(diff_right, onDiffInvertSwitch, NULL);