mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 06:51:17 +07:00
[ui] SimpleColoredComponent: fix missing gap when myIconOnTheRight=true
This commit is contained in:
@@ -722,7 +722,7 @@ public class SimpleColoredComponent extends JComponent implements Accessible, Co
|
||||
}
|
||||
|
||||
doPaintTextBackground(g, offset);
|
||||
offset = doPaintText(g, offset, myFocusBorderAroundIcon || icon == null);
|
||||
offset = doPaintText(g, offset, myFocusBorderAroundIcon || icon == null) + myIconTextGap;
|
||||
if (icon != null && myIconOnTheRight) {
|
||||
doPaintIcon(g, icon, offset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user