Skip to content
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

Window opens offscreen if previously closed while minimized #2717

Closed
woodbyte opened this issue Apr 4, 2019 · 8 comments · Fixed by #2725
Closed

Window opens offscreen if previously closed while minimized #2717

woodbyte opened this issue Apr 4, 2019 · 8 comments · Fixed by #2725
Assignees
Labels
GUI Issues affecting the interactive GUI

Comments

@woodbyte
Copy link

woodbyte commented Apr 4, 2019

Background

CKAN Version:
1.26.0

KSP Version:
1.6.1

Operating System:
Windows 10 Pro 1809

Have you made any manual changes to your GameData folder (i.e., not via CKAN)?
No

Problem

What steps did you take in CKAN?
Closed CKAN by right-clicking the tasbar icon while it was minimized.

What did you expect to happen?
For CKAN to close without issues.

What happened instead?
CKAN closes fine but on the next launch the window is nowhere to be seen and the maximize shortcut (Win+Up) does not work.

Screenshots:
GUIConfig.xml under Kerbal Space Program\CKAN looks like this when the issue occurs. Setting the highlighted values to 0 fixes the issue.

Annotation 2019-04-04 171001
CKAN error codes (if applicable):
None

@DasSkelett DasSkelett added Bug Something is not working as intended GUI Issues affecting the interactive GUI labels Apr 4, 2019
@DasSkelett DasSkelett pinned this issue Apr 4, 2019
@woodbyte
Copy link
Author

woodbyte commented Apr 4, 2019

Having looked at the referenced issue, I should add that I am running on a single monitor and when the issue occurs the Taskbar preview is blank:

Annotation 2019-04-04 223709

@DasSkelett
Copy link
Member

The issues most likely are not connected in any way. I wanted to point @Smorfty to this thread, as his issue is likely the same as yours.

I can confirm the bug (but with a working taskbar preview), and have an assumption what's causing it:
When quitting CKAN, the current window position is saved. If it is minimized to tray at that moment, Windows probably reports the position as (-32000,-32000).

I am currently looking for a way not to save the position on closing if minimized, but instead save it the moment CKAN gets minimized to tray.

@Sabrewulf
Copy link

Reporting the same issue.

@DasSkelett
Copy link
Member

Okay, am working on it.

To make it clear for everyone affected with the issue:
If it already happened:
Open your GUIconfig.xml and change the two -32000 values to 0.

To keep the issue from happening for the time being:
Don't quit via the tray icon.

@diveyez
Copy link

diveyez commented Apr 11, 2019

This happened when opening CKAN after KSP updated today.

@DasSkelett
Copy link
Member

Did you also quit it via the tray icon when CKAN was minimized beforehand?

@ResinSmoker
Copy link

ResinSmoker commented Apr 12, 2019

Was able to get it running...
The fix was as follows:
-Renamed GUIconfig.xml to GUIconfig-Old.xml and renamed the folder CKAN (E:\SteamLibrary\steamapps\common\Kerbal Space Program) to CKAN-OLD.
-Restarted CKAN, waited for it to finish up then closed it out.
-Copied the newly created GUIconfig.xml to CKAN-OLD folder.
-Delete the new CKAN folder.
-Rename CKAN-OLD to CKAN.

Here are the lines that noticeably changed...

SortByColumnIndex>2</SortByColumnIndex

WindowSize
Width>1024</Width
Height>500</Height
WindowSize>
PanelPosition>636</PanelPosition
ModInfoPosition>102</ModInfoPosition
WindowLoc
X>208</X
Y>208</Y

Guessing that that CKAN was running but not within the boundaries of the screen.

@Pizza0101
Copy link

Had the same problem, glad i found this issue here.

To bring the window immediately back to screen: On Windows 10, hold shift while right-clicking on CKAN in the taskbar, then select "Maximize" from the context-menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Issues affecting the interactive GUI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants