From 30e0972de5272f99d36a0cd045a598d82ccd46d2 Mon Sep 17 00:00:00 2001 From: Jason P Date: Mon, 23 Jun 2025 09:32:45 -0500 Subject: [PATCH] Correct pop-up calculation size and continue to leverage isHighResolution --- src/graphics/draw/NotificationRenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/draw/NotificationRenderer.cpp b/src/graphics/draw/NotificationRenderer.cpp index d784930b3..190c1d502 100644 --- a/src/graphics/draw/NotificationRenderer.cpp +++ b/src/graphics/draw/NotificationRenderer.cpp @@ -116,7 +116,6 @@ void NotificationRenderer::drawAlertBannerOverlay(OLEDDisplay *display, OLEDDisp maxWidth = optionWidths[i] + arrowsWidth; } } - totalCount = lineCount + alertBannerOptions; // respond to input if (inEvent == INPUT_BROKER_UP || inEvent == INPUT_BROKER_ALT_PRESS) { @@ -154,13 +153,14 @@ void NotificationRenderer::drawAlertBannerOverlay(OLEDDisplay *display, OLEDDisp if (isHighResolution && boxWidth <= 150) { boxWidth += 26; } - if (SCREEN_WIDTH <= 128 && boxWidth <= 100) { + if (!isHighResolution && boxWidth <= 100) { boxWidth += 20; } } // calculate max lines on screen? for now it's 4 // set height from line count uint16_t boxHeight; + totalCount = lineCount + alertBannerOptions; if (totalCount <= 4) { boxHeight = vPadding * 2 + totalCount * FONT_HEIGHT_SMALL + (totalCount - 1) * lineSpacing; } else {