mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-12 07:10:52 +08:00
Fix
This commit is contained in:
parent
e2895a98a5
commit
2fa87f1779
@ -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
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user