mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
respect margin and icon-text-gap
This commit is contained in:
@@ -62,7 +62,9 @@ public class CheckBoxList extends JBList {
|
||||
JCheckBox checkbox = (JCheckBox)getModel().getElementAt(index);
|
||||
int iconArea;
|
||||
try {
|
||||
iconArea = ((BasicRadioButtonUI)checkbox.getUI()).getDefaultIcon().getIconWidth();
|
||||
iconArea = checkbox.getMargin().left +
|
||||
((BasicRadioButtonUI)checkbox.getUI()).getDefaultIcon().getIconWidth() +
|
||||
checkbox.getIconTextGap();
|
||||
}
|
||||
catch (ClassCastException c) {
|
||||
iconArea = DEFAULT_CHECK_BOX_WIDTH;
|
||||
|
||||
Reference in New Issue
Block a user