Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI breaks when the size is changed to the minimum #767

Closed
Kokecena opened this issue Nov 24, 2023 · 2 comments
Closed

GUI breaks when the size is changed to the minimum #767

Kokecena opened this issue Nov 24, 2023 · 2 comments
Milestone

Comments

@Kokecena
Copy link

Kokecena commented Nov 24, 2023

As the title says the GUI starts to break, it is fixed when it is maximized but if you do the same thing again it happens again, I thought it was something in my application, but it also happens in the demo application, this does not happen with the base look and feel
My application:

20231124_020101.mp4

In the demo application:

20231124_020511.mp4

Maybe this has nothing to do with it, or maybe it does, but I don't know if the error is reported in the jdk bug system, when there is an application that overlays the java application the same effect begins to happen, I made sure not to have the MSI Afterburner or another application that overlaps.

I'm on Windows 11
Java version 17.0.6, BellSoft.

@DevCharly
Copy link
Collaborator

Thanks for reporting and for the videos.

Looks similar to: #700 (comment)

Was not able to reproduce it by manually resizing window to minimum size, but invoking frame.setSize(0,0) and manually increasing window size shows this effect each time.

Turns out that invoking following line from FlatRootLayout.invalidateLayout() causes the problem:

Very strange that a simple repaint has this effect. 😕

DevCharly added a commit that referenced this issue Nov 25, 2023
@DevCharly
Copy link
Collaborator

fixed in latest 3.3-SNAPSHOT: https://github.com/JFormDesigner/FlatLaf#snapshots

Please try it out.

@DevCharly DevCharly added this to the 3.3 milestone Nov 25, 2023
DevCharly added a commit that referenced this issue Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants