From 7161c83d9c8c0a45f66770283f92389344923bfd Mon Sep 17 00:00:00 2001 From: stefan73 <11725734+stefan73@users.noreply.github.com> Date: Mon, 17 Jan 2022 02:24:20 +0100 Subject: [PATCH] [nv14] Make Outputs widget work with two column layouts (#1454) Changed code to allow one column display of outputs already with a width of 100. This fixes the initally reported problem Reason: On the Nirvana the screen width is 320 pixels. Thus the widget width is less than 150 pixels, if you select a two column out layout. The rendering of the outputs looks good with a width of 100px, so there is no need for the "150" - we can start displaying from 100. Should make no difference to the radios with width 480px. --- radio/src/gui/colorlcd/widgets/outputs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/gui/colorlcd/widgets/outputs.cpp b/radio/src/gui/colorlcd/widgets/outputs.cpp index 07736846a..f0e948582 100644 --- a/radio/src/gui/colorlcd/widgets/outputs.cpp +++ b/radio/src/gui/colorlcd/widgets/outputs.cpp @@ -43,7 +43,7 @@ class OutputsWidget : public Widget { if (width() > 300 && height() > 20) twoColumns(dc); - else if (width() > 150 && height() > 20) + else if (width() > 100 && height() > 20) oneColumn(dc); }