Browse Source

无JIRA任务,设计器视觉调整=》选中列表项发生轻微移动问题

master
plough 7 years ago
parent
commit
7050a543f7
  1. 13
      designer_base/src/com/fr/design/gui/controlpane/UINameableListCellRenderer.java

13
designer_base/src/com/fr/design/gui/controlpane/UINameableListCellRenderer.java

@ -110,19 +110,6 @@ public class UINameableListCellRenderer extends
setEnabled(list.isEnabled());
setFont(list.getFont());
Border border = null;
if (cellHasFocus) {
if (isSelected) {
border = DefaultLookup.getBorder(this, ui, "List.focusSelectedCellHighlightBorder");
}
if (border == null) {
border = DefaultLookup.getBorder(this, ui, "List.focusCellHighlightBorder");
}
} else {
border = getNoFocusBorder();
}
setBorder(border);
if (value instanceof ListModelElement) {
Nameable wrappee = ((ListModelElement) value).wrapper;
this.setText(((ListModelElement) value).wrapper.getName());

Loading…
Cancel
Save