Rank: Advanced Member
Groups: Approved
Joined: 11/10/2020(UTC) Posts: 30
Was thanked: 1 time(s) in 1 post(s)
|
Question more of curiosity: my WindowManager application automatically set browser window to 2973x1868px at the first start; then StrokesPlus gesture to put window exactly same place/size need to be set to 2954x1857px. Similar to the starting x-point: 567 WM but 576 SP (vertically same 232px). I using WM on a 40" 4k monitor with scaling 175%. Where have my horizontal pixels gone?
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
It's likely just how the WM is looking at the window's rectangle, probably including the chrome (borders). SP supports both, run this script to see the values with (AbsoluteRectangle) and without (Rectangle) the border included: Code:var wnd = sp.ForegroundWindow();
sp.MessageBox(`Absolute Rect Left: ${wnd.AbsoluteRectangle.Left}`, "Abs Left");
sp.MessageBox(`Visible Rect Left: ${wnd.Rectangle.Left}`, "Visible Left");
This thread has some good info, if you haven't seen it. https://forum.strokesplu...Window-Size-and-Location
|
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 11/10/2020(UTC) Posts: 30
Was thanked: 1 time(s) in 1 post(s)
|
That explains everything! Thanks :)
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close