mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-23 00:40:04 +00:00
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.
This commit is contained in:
parent
8d5f281998
commit
6e57546aa9
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user