dom-align
dom-align copied to clipboard
fix: Ensure that the ancestor element is in the dom tree
some lib(https://www.npmjs.com/package/vue-frag)will create fake parentNode for element
需要一个出错例子。
另外直接在 getVisibleRectForElement 函数开头判断是不是就行了,不进入 while
https://github.com/rainke/align-demo
vue-frag 导致其 child 的 parentNode 是一个不在文档流的元素, 需要跳过继续找祖先元素