There's a small bug in the code for the case where the Dock is situated on the left of the screen. In getDisplayBounds, you have the following:
if screenEdge is bottom then
set item 4 of scrRes to (item 4 of scrRes) - dockHeight
else if screenEdge is left then
set item 1 of scrRes to dockWidth
set item 4 of scrRes to (item 4 of scrRes) - dockWidth
else if screenEdge is right then
set item 3 of scrRes to (item 3 of scrRes) - dockWidth
end if
That second line (set item 4...) in the left case causes windows to be resized to allow for the dock space underneath them. Removing it solves that problem.
Really appreciate the work you did on this, though - much obliged. Works fantastically.
There's a small bug in the code for the case where the Dock is situated on the left of the screen. In getDisplayBounds, you have the following:
if screenEdge is bottom then set item 4 of scrRes to (item 4 of scrRes) - dockHeight else if screenEdge is left then set item 1 of scrRes to dockWidth set item 4 of scrRes to (item 4 of scrRes) - dockWidth else if screenEdge is right then set item 3 of scrRes to (item 3 of scrRes) - dockWidth end if
That second line (set item 4...) in the left case causes windows to be resized to allow for the dock space underneath them. Removing it solves that problem.
Really appreciate the work you did on this, though - much obliged. Works fantastically.