From d4c23446e558777e5084fb8e3d8c2bf6ec3c1dec Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Thu, 17 Jun 2021 09:02:28 +0200 Subject: [PATCH] Fixed menu body height --- radio/src/thirdparty/libopenui/src/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/thirdparty/libopenui/src/menu.cpp b/radio/src/thirdparty/libopenui/src/menu.cpp index 478dd6a13..de1beffd7 100644 --- a/radio/src/thirdparty/libopenui/src/menu.cpp +++ b/radio/src/thirdparty/libopenui/src/menu.cpp @@ -176,7 +176,7 @@ void Menu::updatePosition() // there is no navigation bar at the left, we may center the window on screen auto headerHeight = content->title.empty() ? 0 : POPUP_HEADER_HEIGHT; auto bodyHeight = limit( - MENUS_MIN_HEIGHT, content->body.lines.size() * MENUS_LINE_HEIGHT - 1, + MENUS_MIN_HEIGHT, content->body.lines.size() * MENUS_LINE_HEIGHT, MENUS_MAX_HEIGHT); content->setTop((LCD_H - headerHeight - bodyHeight) / 2 + MENUS_OFFSET_TOP); content->setHeight(headerHeight + bodyHeight);