Skip to content

Commit

Permalink
Invert calculation for BottomCenterRightEighthCalculation on portrait…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
joaquin-splunk authored Jan 10, 2025
1 parent 1408eb3 commit 5702877
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class BottomCenterRightEighthCalculation: WindowCalculation, OrientationAware, E

func portraitRect(_ visibleFrameOfScreen: CGRect) -> RectResult {
var rect = visibleFrameOfScreen
rect.size.width = floor(visibleFrameOfScreen.width / 4.0)
rect.size.height = floor(visibleFrameOfScreen.height / 2.0)
rect.size.width = floor(visibleFrameOfScreen.width / 2.0)
rect.size.height = floor(visibleFrameOfScreen.height / 4.0)
rect.origin.y = visibleFrameOfScreen.minY
rect.origin.x = visibleFrameOfScreen.minX + (2.0 * rect.width)
return RectResult(rect, subAction: .bottomCenterRightEighth)
Expand Down

0 comments on commit 5702877

Please sign in to comment.