StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
berlihingen  
#1 Posted : Saturday, December 19, 2020 5:40:47 AM(UTC)
berlihingen

Rank: Member

Reputation:

Groups: Approved
Joined: 11/10/2020(UTC)
Posts: 18

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?
Rob  
#2 Posted : Saturday, December 19, 2020 5:39:50 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 818
United States
Location: Tampa, FL

Thanks: 18 times
Was thanked: 195 time(s) in 170 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
berlihingen  
#3 Posted : Sunday, December 20, 2020 12:09:33 AM(UTC)
berlihingen

Rank: Member

Reputation:

Groups: Approved
Joined: 11/10/2020(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
That explains everything! Thanks :)
Users browsing this topic
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.