div
div copied to clipboard
When the Dock is on the left or right, windows are positioned behind it
When the Dock is at the bottom, macOS doesn't put windows behind it when they're resized. But for some reason macOS does put windows behind the Dock when it's on the left or right.
It would be nice if the workflow detected the Dock position, and that auto hide is off, and position/resize windows accordingly. In my case my resolution is 1680x1050, and my Dock is 80 pixels wide and on the left. So the usable window space is 1600x1050.
Here is the AppleScript I found for getting the Dock size and preferences.
tell application "System Events" to tell process "Dock"
get size in list 1
end tell
tell application "System Events"
get autohide of dock preferences
get screen edge of dock preferences
end tell
Hi.
Yes I know that macOS calculates windows position differently if the doc k is on the side. I will try to figure this thing out and implement it, but I doubt that there is a reliable solution to detect main screen when multiple screens are connected.
Thanks for reporting an issue :)
I have same question with this :(
This is the only thing I am missing in this workflow.