fix: restore positive resize increments when clearing aspect lock
This commit is contained in:
@@ -298,6 +298,7 @@ def check_cli_instances(root, app, fixtures):
|
||||
"queue preserves video size and mouse target", action="queue", visible=True)
|
||||
window = opened[first_pid]["window"]
|
||||
if (not window["resizable"] or window["aspectWidth"] != 0 or window["aspectHeight"] != 0
|
||||
or window["resizeIncrementWidth"] <= 0 or window["resizeIncrementHeight"] <= 0
|
||||
or window["minWidth"] > 660 or window["minHeight"] > 300
|
||||
or window["maxWidth"] <= window["width"] + 80
|
||||
or window["maxHeight"] <= window["height"] + 80
|
||||
|
||||
@@ -111,6 +111,8 @@ private enum CLIInstanceCheck {
|
||||
"contentMinWidth": window.contentMinSize.width, "contentMinHeight": window.contentMinSize.height,
|
||||
"contentMaxWidth": window.contentMaxSize.width, "contentMaxHeight": window.contentMaxSize.height,
|
||||
"aspectWidth": window.aspectRatio.width, "aspectHeight": window.aspectRatio.height,
|
||||
"resizeIncrementWidth": window.resizeIncrements.width,
|
||||
"resizeIncrementHeight": window.resizeIncrements.height,
|
||||
"resizable": window.styleMask.contains(.resizable),
|
||||
]
|
||||
if let surface = surface(in: content) {
|
||||
|
||||
Reference in New Issue
Block a user