@kwellman after dig into creator, i found the plugin already supports widgets, but the widget can only
AlignOnce. If want to support align in runtime, then
- plugin should retain the
target it aligns to and the
node which is will do align
- when the target or node is deleted by codes, then plugin(reader and other codes) doesn't know it, so
node will not been deleted, which is error.
If plugin doesn't retain them, then they will be wild pointer. So we can only align the Widget once.