Refactor main screen code some more

This commit is contained in:
Henrik Rydgård committed 2025-10-23 16:05:23 +02:00
1 parent 2404fc330d
commit 0397fe5e91
3 files changed
+58 -43

No files matched your search

+1 -1
View File
@@ -490,7 +490,7 @@ void Choice::GetContentDimensionsBySpec(const UIContext &dc, MeasureSpec horiz,
totalW += textW;
}
w = totalW + 24;
w = totalW + (text_.empty() ? 16 : 24);
h = totalH + 16;
h = std::max(h, ITEM_HEIGHT);
}