From 4c8589be19063cfdc2b85bae44e4136909d103bc Mon Sep 17 00:00:00 2001 From: Rhys Yang Date: Wed, 18 Oct 2023 05:31:34 +0800 Subject: [PATCH] Update width and height when aspect ratio is selected --- js/parameterDisplay.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/parameterDisplay.js b/js/parameterDisplay.js index 3aa87f3..ae0e61f 100644 --- a/js/parameterDisplay.js +++ b/js/parameterDisplay.js @@ -41,6 +41,8 @@ app.registerExtension({ } else { ar_message = `Optimal resolution for ${message.text[1]} model with aspect ratio ${message.text[0]}: ${message.text[2]} x ${message.text[3]}`; + this.widgets.find(obj => obj.name === "width").value = message.text[2]; + this.widgets.find(obj => obj.name === "height").value = message.text[3]; } const start_at_float = parseFloat(message.text[5])