Skip to content

Commit b97a353

Browse files
committed
Allow smaller height to make the window smaller at max height, fixes #1645
1 parent 0f74916 commit b97a353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rectangle/WindowCalculation/ChangeSizeCalculation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class ChangeSizeCalculation: WindowCalculation, ChangeWindowDimensionCalculation
6666
resizedWindowRect.size.height = resizedWindowRect.height + sizeOffset
6767
resizedWindowRect.origin.y = resizedWindowRect.minY - floor(sizeOffset / 2.0)
6868

69-
if curtainChangeSize {
69+
if curtainChangeSize, params.action != .smallerHeight {
7070
resizedWindowRect = againstTopAndBottomScreenEdges(
7171
originalWindowRect: window.rect,
7272
resizedWindowRect: resizedWindowRect,

0 commit comments

Comments
 (0)