mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't forget about Y param
This commit is contained in:
@@ -68,9 +68,12 @@ public class RowIcon implements Icon {
|
||||
for (Icon icon : myIcons) {
|
||||
if (icon == null) continue;
|
||||
switch (myAlignment) {
|
||||
case TOP: _y = y;break;
|
||||
case CENTER: _y = (myHeight - icon.getIconHeight())/2;break;
|
||||
case BOTTOM: _y = (myHeight - icon.getIconHeight());break;
|
||||
case TOP: _y = y;
|
||||
break;
|
||||
case CENTER: _y = y + (myHeight - icon.getIconHeight())/2;
|
||||
break;
|
||||
case BOTTOM: _y = y + (myHeight - icon.getIconHeight());
|
||||
break;
|
||||
}
|
||||
icon.paintIcon(c, g, _x, _y);
|
||||
_x += icon.getIconWidth();
|
||||
|
||||
Reference in New Issue
Block a user