mirror of https://github.com/aseprite/aseprite.git
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) {
|
||||
textRc.y -= 2*guiscale();
|
||||
iconRc.y -= 1*guiscale();
|
||||
if (isLastRow && info.row > 0) iconRc.y -= 2*guiscale();
|
||||
}
|
||||
|
||||
if (!gfx::is_transparent(bgColor()))
|
||||
|
|
|
|||
Loading…
Reference in New Issue