Skip to content

Commit

Permalink
Readjusted the top sixths portrait calculations after testing them out.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxhanson committed Jun 9, 2023
1 parent dd39e6b commit cd0429b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class TopCenterSixthCalculation: WindowCalculation, OrientationAware {
var rect = visibleFrameOfScreen
rect.size.width = floor(visibleFrameOfScreen.width / 2.0)
rect.size.height = floor(visibleFrameOfScreen.height / 3.0)
rect.origin.y = visibleFrameOfScreen.maxY - rect.height
rect.origin.y = visibleFrameOfScreen.minY + rect.height
return RectResult(rect, subAction: .leftCenterSixthPortrait)
}
}
Expand Down
2 changes: 1 addition & 1 deletion Rectangle/WindowCalculation/TopLeftSixthCalculation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class TopLeftSixthCalculation: WindowCalculation, OrientationAware, SixthsRepeat
var rect = visibleFrameOfScreen
rect.size.width = floor(visibleFrameOfScreen.width / 2.0)
rect.size.height = floor(visibleFrameOfScreen.height / 3.0)
rect.origin.y = visibleFrameOfScreen.maxY - (rect.height * 2.0)
rect.origin.y = visibleFrameOfScreen.maxY - rect.height
return RectResult(rect, subAction: .topLeftSixthPortrait)
}
}
2 changes: 1 addition & 1 deletion Rectangle/WindowCalculation/TopRightSixthCalculation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class TopRightSixthCalculation: WindowCalculation, OrientationAware, SixthsRepea
rect.size.width = floor(visibleFrameOfScreen.width / 2.0)
rect.size.height = floor(visibleFrameOfScreen.height / 3.0)
rect.origin.x = visibleFrameOfScreen.minX + rect.width
rect.origin.y = visibleFrameOfScreen.maxY - (rect.height * 2.0)
rect.origin.y = visibleFrameOfScreen.maxY - rect.height
return RectResult(rect, subAction: .topRightSixthPortrait)
}
}

0 comments on commit cd0429b

Please sign in to comment.