-
Notifications
You must be signed in to change notification settings - Fork 28
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
self.w.resize() pushes FloatingWindow on top (only on second screen) #60
Comments
there is something wrong when the screen is not the main screen see https://github.com/typesupply/vanilla/blob/master/Lib/vanilla/vanillaWindows.py#L376-L377 |
not reproducible on 10.10 |
Actually, it is reproducible on 10.10, if your screen arrangement looks like this: I bet is has to do with this chunk of code: In the arrangement shown, t (the top coord) can legitimately be negative, and vanilla does the wrong thing here (I think). |
This bug occurs also on normal windows and also if using setPosSize() |
could you elaborate your setup? osx version? setup of different screens? |
All he's saying is that it's not just the FloatingWindow, also a normal vanilla Window. I've shown earlier how to replicate on multiple screens. |
Just to make sure: macOS 10.12.6 My display settings aren't negative on the second screen. I was about to make an example gif and just encountered two important things to note:
@justvanrossum I got the feeling this bug lays deeper due to my screen setup and the launch-placement. |
Just ran into the same issue. I am changing the height of a Window on my second screen. The windows gets unexpectedly stacked to the top of the screen when the second screen is above the main screen (widows's y coordinate is negative) Nothing critical though 😊 |
Hi!
Consider this demo:
It is an example for a possible scenario. I have a tool, this tool has a popUpButton() on top which defines the usage mode. Different modes (for example, “place anchors”, “build accents") need different controls below the popUpButton(). Different controls, different window size needed. Therefore I use self.w.resize() to adjust the window height. The issue is: if the tool is placed on my second screen, the method moves the tool on top of the screen.
I am on MacOS 10.13.3
Thanks!
The text was updated successfully, but these errors were encountered: