mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-21 11:50:16 +08:00
Fix
This commit is contained in:
parent
e2895a98a5
commit
2fa87f1779
@ -260,6 +260,8 @@ app.registerExtension({
|
|||||||
onPropertyChanged(property, value) {
|
onPropertyChanged(property, value) {
|
||||||
if (property === "valuesType") {
|
if (property === "valuesType") {
|
||||||
const isList = value === "list"
|
const isList = value === "list"
|
||||||
|
if (this.mainWidget)
|
||||||
|
this.mainWidget.disabled = isList
|
||||||
if (this.listWidget)
|
if (this.listWidget)
|
||||||
this.listWidget.disabled = !isList
|
this.listWidget.disabled = !isList
|
||||||
|
|
||||||
|
|||||||
@ -450,8 +450,6 @@ export class ComfyApp {
|
|||||||
this.pointerDown = null;
|
this.pointerDown = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
let w = this.imgs[0].naturalWidth;
|
|
||||||
let h = this.imgs[0].naturalHeight;
|
|
||||||
let imageIndex = this.imageIndex;
|
let imageIndex = this.imageIndex;
|
||||||
const numImages = this.imgs.length;
|
const numImages = this.imgs.length;
|
||||||
if (numImages === 1 && !imageIndex) {
|
if (numImages === 1 && !imageIndex) {
|
||||||
@ -465,6 +463,8 @@ export class ComfyApp {
|
|||||||
dh -= shiftY;
|
dh -= shiftY;
|
||||||
|
|
||||||
if (imageIndex == null) {
|
if (imageIndex == null) {
|
||||||
|
let w = this.imgs[0].naturalWidth;
|
||||||
|
let h = this.imgs[0].naturalHeight;
|
||||||
let best = 0;
|
let best = 0;
|
||||||
let cellWidth;
|
let cellWidth;
|
||||||
let cellHeight;
|
let cellHeight;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user