mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-09 08:15:09 +03:00
Theme Editor: fixed occasional empty window on startup on macOS
This commit is contained in:
@@ -22,6 +22,7 @@ FlatLaf Change Log
|
||||
`<big>`, `<small>` and `<samp>` in HTML text for components Button, CheckBox,
|
||||
RadioButton, MenuItem (and subclasses), JideLabel, JideButton, JXBusyLabel and
|
||||
JXHyperlink. Also fixed for Label and ToolTip if using Java 11+.
|
||||
- Theme Editor: Fixed occasional empty window on startup on macOS.
|
||||
|
||||
#### Incompatibilities
|
||||
|
||||
|
||||
@@ -929,6 +929,12 @@ class FlatThemeFileEditor
|
||||
y = Math.max( Math.min( y, r.height - h ), r.y );
|
||||
}
|
||||
|
||||
// On macOS, the window may be empty if it spans the whole screen height
|
||||
// and client property apple.awt.fullWindowContent is set to true.
|
||||
// Invoking addNotify() before setting window bounds fixes this issue.
|
||||
if( SystemInfo.isMacOS && !isDisplayable() )
|
||||
addNotify();
|
||||
|
||||
setBounds( x, y, w, h );
|
||||
return;
|
||||
} catch( NumberFormatException ex ) {
|
||||
|
||||
Reference in New Issue
Block a user