Ckan: Main window spawns with controls behind menu bar on OS X

Created on 25 Jul 2016  Â·  10Comments  Â·  Source: KSP-CKAN/CKAN

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

Bug Easy GUI macOS

All 10 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.

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 Kerbal Space Program/CKAN/GUIConfig.xml and change this:

  <WindowLoc>
    <X>0</X>
    <Y>0</Y>
  </WindowLoc>

to something like this:

  <WindowLoc>
    <X>0</X>
    <Y>50</Y>
  </WindowLoc>

Edit Kerbal Space Program/CKAN/GUIConfig.xml
[...]

Yep, that seems to do the trick. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JesusTheBird picture JesusTheBird  Â·  5Comments

DasSkelett picture DasSkelett  Â·  4Comments

davidgiven picture davidgiven  Â·  6Comments

motoboy98 picture motoboy98  Â·  6Comments

btbonval picture btbonval  Â·  6Comments