-
-
Notifications
You must be signed in to change notification settings - Fork 345
Main window spawns with controls behind menu bar on OS X #1838
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
Comments
Finding the current screen resolution would be the only tricky part of this. |
Okay, since I know nothing about Mono, I won't ask why. Instead, I suggest adding at least 22px to the y-coordinate, which clears the menu bar on OS X. |
Yes, that would be an even simpler change. |
I believe this was fixed by #2165; the AskForAutoUpdates popup appears when launching for the first time, and that PR moved it to the center of the screen. |
Hi! I keep running into this problem, even with current versions of CKAN. #2165 is only about the AskForAutoUpdates popup, not about the Main window placement. |
Yeah, I misunderstood this issue. Oops. |
Well that's interesting. Default location is 0,0. Lines 43 to 59 in aba8b02
|
And (0, 0) is exactly where the window opens on first run. On macOS, this neatly tucks the window's title bar (which is 22px in height) behind the menu bar (which is also 22px high). So on macOS, any y-value of ≥23px is a sane default. |
Possible workaround not requiring third party tools: Edit <WindowLoc>
<X>0</X>
<Y>0</Y>
</WindowLoc> to something like this: <WindowLoc>
<X>0</X>
<Y>50</Y>
</WindowLoc> |
Yep, that seems to do the trick. Thanks! |
When launching CKAN for the first time on OS X, the window spawns at (0,0). This puts the window's title bar and controls behind the menu bar, making it impossible to move. Fortunately, I was able to move it with JiTouch, and on further launches, the main window remembers it's last position.
I suggest to add a check if there is a user-set previous window location, and if not, center the window on the screen
CKAN Version: v1.18.1-0-g0d2c4f0 (beta)
Operating System: OS X El Capitan 10.11.6
The text was updated successfully, but these errors were encountered: