mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-18 11:42:47 +00:00
Fix icon's Y position when the item is in the last row of a ButtonSet with more than one row (fix #2676)
This commit is contained in:
parent
6e57546aa9
commit
fecfbb1145
@ -96,6 +96,7 @@ void ButtonSet::Item::onPaint(ui::PaintEvent& ev)
|
|||||||
if (m_icon || isLastRow) {
|
if (m_icon || isLastRow) {
|
||||||
textRc.y -= 2*guiscale();
|
textRc.y -= 2*guiscale();
|
||||||
iconRc.y -= 1*guiscale();
|
iconRc.y -= 1*guiscale();
|
||||||
|
if (isLastRow && info.row > 0) iconRc.y -= 2*guiscale();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gfx::is_transparent(bgColor()))
|
if (!gfx::is_transparent(bgColor()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user