From 091b589e6b27339f920a341731add0008e8e5feb Mon Sep 17 00:00:00 2001 From: philmoz Date: Thu, 8 Jun 2023 11:31:04 +1000 Subject: [PATCH] fix(color): Layout scroll issue with MPM protocol option settings (#3663) --- radio/src/gui/colorlcd/mpm_settings.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/radio/src/gui/colorlcd/mpm_settings.cpp b/radio/src/gui/colorlcd/mpm_settings.cpp index bab214110..60d9fe621 100644 --- a/radio/src/gui/colorlcd/mpm_settings.cpp +++ b/radio/src/gui/colorlcd/mpm_settings.cpp @@ -54,14 +54,16 @@ MPMProtoOption::MPMProtoOption(FormGroup* form, FlexGridLayout *layout) : if (layout) layout->resetPos(); label = new StaticText(this, rect_t{}, "", 0, COLOR_THEME_PRIMARY1); - auto box = new FormGroup(this, rect_t{}); - box->setFlexLayout(LV_FLEX_FLOW_ROW); + auto box = new FormWindow(this, rect_t{}); + box->setFlexLayout(LV_FLEX_FLOW_ROW, 4); + box->setWidth((LCD_W - 20) * 2 / 3); choice = new Choice(box, rect_t{}, 0, 0, nullptr); edit = new NumberEdit(box, rect_t{}, 0, 0, nullptr); cb = new CheckBox(box, rect_t{}, nullptr, nullptr); rssi = new DynamicNumber( box, rect_t{}, [] { return (uint16_t)TELEMETRY_RSSI(); }, 0, getRxStatLabels()->label, getRxStatLabels()->unit); + rssi->padTop(5); } void MPMProtoOption::update(const MultiRfProtocols::RfProto* rfProto, ModuleData* md, uint8_t moduleIdx)