Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout not correct for left-aligned Dock #7

Open
ntickner opened this issue Jun 27, 2013 · 0 comments
Open

Layout not correct for left-aligned Dock #7

ntickner opened this issue Jun 27, 2013 · 0 comments

Comments

@ntickner
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant