ModernDocking icon indicating copy to clipboard operation
ModernDocking copied to clipboard

Floating Frames Are Not Maximized Properly on Restore

Open andrewauclair opened this issue 9 months ago • 3 comments

If a floating frame, created by Modern Docking, is maximized, saved to a layout, and then restore on application startup, the frame is not maximized properly. It seems to maximize and then return to a smaller size and a incorrectly painted frame border.

andrewauclair avatar Mar 06 '25 15:03 andrewauclair

It looks like setting the size of a JFrame followed by setting its extended state will return the frame to a normal state. This can be fixed by only setting the size if the frame extended state is not MAXIMIZED_BOTH (6).

Additionally, I've noticed (at least on Windows 11) that JFrames that are minimized are not rendered when they're restored until the user opens them. I'm not sure if this can be addressed.

andrewauclair avatar Mar 06 '25 16:03 andrewauclair

Make sure we don't break the changes in #198 when fixing this.

andrewauclair avatar Mar 06 '25 19:03 andrewauclair

I can no longer reproduce this.

andrewauclair avatar Apr 19 '25 14:04 andrewauclair