mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
[BugFix] Set height to 0 for hidden widgets on GroupNode (#2566)
This commit is contained in:
@@ -195,6 +195,15 @@ export class DOMWidgetImpl<T extends HTMLElement, V extends object | string>
|
|||||||
|
|
||||||
/** Extract DOM widget size info */
|
/** Extract DOM widget size info */
|
||||||
computeLayoutSize(node: LGraphNode) {
|
computeLayoutSize(node: LGraphNode) {
|
||||||
|
// @ts-expect-error custom widget type
|
||||||
|
if (this.type === 'hidden') {
|
||||||
|
return {
|
||||||
|
minHeight: 0,
|
||||||
|
maxHeight: 0,
|
||||||
|
minWidth: 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const styles = getComputedStyle(this.element)
|
const styles = getComputedStyle(this.element)
|
||||||
let minHeight =
|
let minHeight =
|
||||||
this.options.getMinHeight?.() ??
|
this.options.getMinHeight?.() ??
|
||||||
|
|||||||
Reference in New Issue
Block a user