Type Widget.computedHeight (#2539)

This commit is contained in:
Chenlei Hu
2025-02-12 16:50:30 -05:00
committed by GitHub
parent 8bb785c5e4
commit c7aaa2a45d
3 changed files with 6 additions and 5 deletions

View File

@@ -371,9 +371,7 @@ export const useLitegraphService = () => {
shiftY = w.last_y
if (w.computeSize) {
shiftY += w.computeSize()[1] + 4
// @ts-expect-error computedHeight only exists for DOMWidget
} else if (w.computedHeight) {
// @ts-expect-error computedHeight only exists for DOMWidget
shiftY += w.computedHeight
} else {
shiftY += LiteGraph.NODE_WIDGET_HEIGHT + 4