question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Occassional incorrect window size

See original GitHub issue

Bug 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:

correct incorrect

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:closed
  • Created 4 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
irmencommented, Mar 25, 2020

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.

0reactions
irmencommented, Mar 25, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found