Skip to content

Commit

Permalink
Element-based nav: place labels correctly when Dock not auto-hidden.
Browse files Browse the repository at this point in the history
See #29: #29
  • Loading branch information
mjrusso committed Jul 21, 2022
1 parent 59f4fb1 commit 51df77a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scoot/Accessibility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ struct Accessibility {

/// The element's frame, in Cocoa/AppKit window coordinates.
var windowRect: CGRect {
CGRect(x: frame.origin.x - screen.frame.origin.x,
y: frame.origin.y - screen.frame.origin.y,
CGRect(x: frame.origin.x - screen.visibleFrame.origin.x,
y: frame.origin.y - screen.visibleFrame.origin.y,
width: frame.width,
height: frame.height)
}
Expand Down

0 comments on commit 51df77a

Please sign in to comment.