jgallen23 / layouts

an applescript and alfred extension to manage window layouts
http://projects.jga.me/layouts/
274 stars 34 forks source link

Layout not correct for left-aligned Dock #7

Open ntickner opened 11 years ago

ntickner commented 11 years ago

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.