Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给组件设置margin后,hover框偏移 #59

Open
zhangjv opened this issue May 27, 2019 · 0 comments
Open

给组件设置margin后,hover框偏移 #59

zhangjv opened this issue May 27, 2019 · 0 comments

Comments

@zhangjv
Copy link

zhangjv commented May 27, 2019

guide-line 的框位置是通过getBoundingClientRect 计算的,但是设置margin后guide-line框的位置会与editor中渲染出来的组件实际位置不一致,后续的组件也会受到偏移的影响。求解决办法考虑用css的hover实现类似效果有何问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant