[fix] DOM widgets lose correct positioning when SubgraphNodes are nested (#4588)

This commit is contained in:
Christian Byrne
2025-07-30 02:18:58 -07:00
committed by GitHub
parent 516eb26d3e
commit b370b6387d
2 changed files with 88 additions and 0 deletions

View File

@@ -186,6 +186,9 @@ abstract class BaseDOMWidgetImpl<V extends object | string>
options: this.options
})
cloned.value = this.value
// Preserve the Y position from the original widget to maintain proper positioning
// when widgets are promoted through subgraph nesting
cloned.y = this.y
return cloned
}
}
@@ -217,6 +220,9 @@ export class DOMWidgetImpl<T extends HTMLElement, V extends object | string>
options: this.options
})
cloned.value = this.value
// Preserve the Y position from the original widget to maintain proper positioning
// when widgets are promoted through subgraph nesting
cloned.y = this.y
return cloned
}