-
Notifications
You must be signed in to change notification settings - Fork 24
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
修复 https://github.com/aralejs/tip/issues/12 的后遗症 #15
Comments
重新改了下, 原本的执行过程:
放在 attr 中的 style 会在 1) 就执行掉, 如果外部给 element 设置了 position, 这边就会强制设 position:absolute, 导致错误. |
赞这速度!等会下来研究下! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/aralejs/overlay/blob/master/src/overlay.js#L34
这里强行的设置了 absolute,导致原来在 css 上的 fixed 失效了!
建议设置 absolute 前做个保护性判断,如果已经设置了 position 属性就不去设置了
The text was updated successfully, but these errors were encountered: