From 6e57546aa986f68e502c21fc61642c539f762732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Capello?= Date: Wed, 14 Sep 2022 16:53:13 -0300 Subject: [PATCH] Fix text Y position when the item is in the last row of a ButtonSet. The last row of items are a bit taller to make room for the button border, so this compensates that. --- src/app/ui/button_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/ui/button_set.cpp b/src/app/ui/button_set.cpp index 666c4a8b7..5f6db190e 100644 --- a/src/app/ui/button_set.cpp +++ b/src/app/ui/button_set.cpp @@ -94,7 +94,7 @@ void ButtonSet::Item::onPaint(ui::PaintEvent& ev) bool isLastRow = (info.row+info.vspan >= info.grid_rows); if (m_icon || isLastRow) { - textRc.y -= 1*guiscale(); + textRc.y -= 2*guiscale(); iconRc.y -= 1*guiscale(); }