-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Extra-length combo-box popup sizing and positioning in multi-screen environment #182
Comments
Ups, never tried that wide popups 😄 Limiting the maximum width of the popup to the screen width is a good idea 👍 Regarding the second issue: are you sure that you used FlatLaf 0.42? |
fixed in master branch |
Thank you. I saw the change and wondered if screen insets should be considered (as is currently) for a popup. Maybe it is o.k. as the insets might be occupied by an always-on-top window which might show even on top of the popup. |
If the taskbar/dock is at the bottom, Swing changes the location of combobox popup so that the popup never overlaps the taskbar/dock. So I think it should also not overlap the taskbar/dock if it is on the right or left side. |
FlatScreenInfo
Using the following sample program:
Moving the application window to the left (secondary) monitor, then opening the combo-box popup – the popup is misaligned, using the resolution/scaling of the right (main) monitor and extends across the right monitor end:
In my opinion, the popup should not extend across monitors.
Not sure if it is related, I'm noticing – without the extra-length item:
when moving the application window between monitors (Win+Shift+Left/Right-Arrow), the first time the combo popup is opened it is shown at a weird position:
The second time the popup is opened it is aligned/positioned as expected.
The text was updated successfully, but these errors were encountered: