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 12:40:47 PM(UTC)
berlihingen

Rank: Advanced Member

Reputation:

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?
Rob  
#2 Posted : Sunday, December 20, 2020 12:39:50 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,359
United States
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
berlihingen  
#3 Posted : Sunday, December 20, 2020 7:09:33 AM(UTC)
berlihingen

Rank: Advanced Member

Reputation:

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

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.