Page 1 of 1

[Fix 11.3.0] SCS window pops up at wrong position

Posted: Sat Mar 22, 2014 8:36 pm
by dennis
Short description:
If closed on a certain position the position of the SCS main window will not be restored on next start.

Affected versions:
Tested with 11.2.5 and 11.2.6n

Description:
The screen layout is pretty simple. Two screens with a resolution of 1280x768 each. SCS main window on the screen leftof the primary one.
However i was able to reproduce this at home with the layout configuration attached. (primary 1600x900 and secondary 1366;768)

If i close SCS the following window position will be saved:

Code: Select all

Main = Max;-1370;0
I expected x = -1366 there.

After opening and closing it again. The new position is now:

Code: Select all

Main = 404;140;792;560
I then changed the x coordinate to

Code: Select all

Main = Max;-1366;0
and it worked

However once closed, the saved position was again:

Code: Select all

Main = Max;-1370;0
So the current workaround was to not use a maximized window. If i use the following window position and size the window will be restored at the position as expected:

Code: Select all

Main = -1366;0;1366;768
Steps to reproduce:
Position the SCS main window on a screen left of the primary screen.
Maximize the window.
Close SCS
Open it again

Expected result:
SCS main window opens maximized on the secondary screen.

Actual result:
SCS main window opens centered at the primary screen with a width of 792px and a height of 560px.


thanks,
dennis

Re: SCS window pops up at wrong position

Posted: Sun Mar 23, 2014 5:27 pm
by Mike Daniell
Hmm. The maximized screen coordinates seem to be out by the window border size. I'll either try to compensate for this difference, or see if there's some way to get the real coordinates.

Re: SCS window pops up at wrong position

Posted: Mon Jul 07, 2014 4:42 pm
by Mike Daniell
A mod has been applied in 11.3.0 that should fix this issue.