microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.24k stars 6.54k forks source link

Fancy Zones Screen size error #14869

Closed ka-patel closed 2 years ago

ka-patel commented 2 years ago

Microsoft PowerToys version

0.51.1

Running as admin

Area(s) with issue?

FancyZones Editor

Steps to reproduce

Having two 4K monitor in a reading book fashion (left-hand side and right-hand side with long way top to bottom)

✔️ Expected Behavior

They both should display 2160x3840.

❌ Actual Behavior

The zones editor displays screen size of 2160x3759 for left-hand monitor and 2160x3731 for the right-hand monitor Screenshot 2021-12-06 163022

Other Software

NA

Jay-o-Way commented 2 years ago

I'm gonna guess your task bar is on the right side? That would explain the difference: the area shown is "workable" area

ka-patel commented 2 years ago

My primary desktop is on the right side but the task bar is set to show on all displays, show task bar buttons on all taskbars, and combine buttons on other taskbars to always hide labels. The size of the taskbar is same on both display and locked. Screenshot 2021-12-06 192239 Screenshot 2021-12-06 192417

crutkas commented 2 years ago

Can you include a "report bug" log? image

38 pixel gap is an odd number

crutkas commented 2 years ago

@ka-patel does the actual snapping zones for PT go edge to edge and this is just an editor issue?

Like, when the editor is trying to adjust that window, can you go edge to edge?

ka-patel commented 2 years ago

I found the culprit that is causing this issue.

I am running an abandonware utility called WinBar (version 2.0.1.126 x64 Beta from https://sourceforge.net/projects/winbar/) is occupying real estate at top of the left monitor (it is identified as monitor 2 from the display settings). I am guessing that the height of that utility, 38 pixels sounds about right, is deducted in the screen size calculations. That utility is not set to remain on top or anything like that but when I do snap a window in that quadrant, it does snap below it. All else works correctly, including snapping from edge to edge no problem. I could not produce the report bug log file some odd reasons but if you want to dig deeper then please provide the process to create a log file.

ka-patel commented 2 years ago

Found the bug report on the desktop which is attached if there any interes PowerToysReport_2021-12-06-20-30-51.zip t.

crutkas commented 2 years ago

I'd call this an app compat issue then but something we wouldn't fix. we're calling a standard API for screen size and somehow that is interfering with it.