Browse Source

Fixed cell height when an empty string is given.

Signed-off-by: weisj <weisj@arcor.de>
pull/60/head
weisj 5 years ago
parent
commit
52c076905e
  1. 4
      core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRenderer.java

4
core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRenderer.java

@ -80,6 +80,10 @@ public class DarkListCellRenderer extends DefaultListCellRenderer {
comp.setForeground(UIManager.getColor("List.selectionForegroundInactive"));
}
}
if (getText().isEmpty()) {
//Fix cell height for empty string.
setText(" ");
}
return comp;
}
}

Loading…
Cancel
Save