This commit is contained in:
space-nuko 2023-06-08 21:46:10 -05:00
parent e2895a98a5
commit 2fa87f1779
2 changed files with 4 additions and 2 deletions

View File

@ -260,6 +260,8 @@ app.registerExtension({
onPropertyChanged(property, value) {
if (property === "valuesType") {
const isList = value === "list"
if (this.mainWidget)
this.mainWidget.disabled = isList
if (this.listWidget)
this.listWidget.disabled = !isList

View File

@ -450,8 +450,6 @@ export class ComfyApp {
this.pointerDown = null;
}
let w = this.imgs[0].naturalWidth;
let h = this.imgs[0].naturalHeight;
let imageIndex = this.imageIndex;
const numImages = this.imgs.length;
if (numImages === 1 && !imageIndex) {
@ -465,6 +463,8 @@ export class ComfyApp {
dh -= shiftY;
if (imageIndex == null) {
let w = this.imgs[0].naturalWidth;
let h = this.imgs[0].naturalHeight;
let best = 0;
let cellWidth;
let cellHeight;