mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
center icon
This commit is contained in:
@@ -42,7 +42,7 @@ public abstract class MoreTabsIcon {
|
||||
}
|
||||
|
||||
protected int getIconX(final Rectangle iconRec) {
|
||||
return iconRec.x + iconRec.width / 2 - (myIcon.getIconWidth() + 2) / 2;
|
||||
return iconRec.x + iconRec.width / 2 - (myIcon.getIconWidth()) / 2;
|
||||
}
|
||||
|
||||
protected int getIconY(final Rectangle iconRec) {
|
||||
|
||||
Reference in New Issue
Block a user