Occassional incorrect window size
See original GitHub issueBug in window sizing: when starting SwingApplication it sometimes starts smaller
Expected behavior
SwingApplication size should have always the same size
Actual behavior
With no changes is code, the window is sometimes smaller. Added ‘#’ printing to better show the difference:
Steps to reproduce the bug
It happens even in the simplest possible config, with about 20% chance:
fun main() {
SwingApplications.startApplication()
}
Environment
Linux Arch: 5.1.3-arch2-1-ARCH Desktop environment: KDE5 Zircon version: 2019.1.2-PREVIEW
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (12 by maintainers)
Top Results From Across the Web
Initial window size is occasionally incorrect on sway #3074
This breaks the code that relies on $LINES and $COLUMNS to be correct during zsh initialization. Annoyingly this doesn't happen consistently ...
Read more >Why is my monitor size incorrect on Windows? - Quora
The stretched display makes the screen appear pixelated as the screen is stretched to match the resolution and size of the monitor.
Read more >Solved: Spotify window frequently resizing incorrectly, lo...
Solved: Operating System Windows 10 My Question or Issue Most of the time, but not always, the Spotify window will not resize correctly....
Read more >Window Size and Position Not Restored - Sierra Chart
The solution is to manually move and manually adjust the size and position so that Windows 10 returns the correct size and position...
Read more >X11: Getting bogus window size and position - Stack Overflow
I know, I'm necroposter, but I was also looking for the answer and found out that the incorrect coordinates are related to Window...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For me it looks like the swing window is setting its width including borders and padding to the calculated width? Instead of the inner width.
Indeed it sometimes is correct! How odd. Seems like a layout sizing conflict inside swing? I have no idea why sometimes it comes out okay and other times a few pixels off