mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 23:08:42 +03:00
ComboBox: fixed popup border painting on HiDPI screens (e.g. at 150% scaling)
This commit is contained in:
@@ -20,6 +20,7 @@ FlatLaf Change Log
|
|||||||
- OptionPane: Fixed rendering of longer HTML text if it is passed as
|
- OptionPane: Fixed rendering of longer HTML text if it is passed as
|
||||||
`StringBuilder`, `StringBuffer`, or any other object that returns HTML text in
|
`StringBuilder`, `StringBuffer`, or any other object that returns HTML text in
|
||||||
method `toString()`. (similar to issue #12)
|
method `toString()`. (similar to issue #12)
|
||||||
|
- ComboBox: Fixed popup border painting on HiDPI screens (e.g. at 150% scaling).
|
||||||
- ComboBox (editable): Fixed wrong border of internal text field under special
|
- ComboBox (editable): Fixed wrong border of internal text field under special
|
||||||
circumstances.
|
circumstances.
|
||||||
- Spinner: Fixed painting of border corners on left side. (issue #382;
|
- Spinner: Fixed painting of border corners on left side. (issue #382;
|
||||||
|
|||||||
@@ -695,6 +695,9 @@ public class FlatComboBoxUI
|
|||||||
protected void configurePopup() {
|
protected void configurePopup() {
|
||||||
super.configurePopup();
|
super.configurePopup();
|
||||||
|
|
||||||
|
// make opaque to avoid that background shines thru border (e.g. at 150% scaling)
|
||||||
|
setOpaque( true );
|
||||||
|
|
||||||
Border border = UIManager.getBorder( "PopupMenu.border" );
|
Border border = UIManager.getBorder( "PopupMenu.border" );
|
||||||
if( border != null )
|
if( border != null )
|
||||||
setBorder( border );
|
setBorder( border );
|
||||||
|
|||||||
Reference in New Issue
Block a user