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

第一次加载时canvas高度为0 #4

Open
augustVino opened this issue Apr 8, 2018 · 2 comments
Open

第一次加载时canvas高度为0 #4

augustVino opened this issue Apr 8, 2018 · 2 comments

Comments

@augustVino
Copy link

第一次加载、或Ctrl+F5强制刷新时,由于图片未加载完毕,故获取的imgBox的高度为0,导致canvas的高度也为0、放大镜失效。建议:this.imgbox=box此操作应写在img.onload里边。

@hql7
Copy link

hql7 commented Oct 17, 2018

怎么还不解决

@LFNLFN
Copy link

LFNLFN commented Oct 22, 2021

我也遇到了这个问题,我的做法是在 imgBox 加上 v-if

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

3 participants