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

图片行内属性宽高均为 0 #244

Open
jeff-wangzhen opened this issue Jun 27, 2022 · 2 comments
Open

图片行内属性宽高均为 0 #244

jeff-wangzhen opened this issue Jun 27, 2022 · 2 comments

Comments

@jeff-wangzhen
Copy link

jeff-wangzhen commented Jun 27, 2022

偶现异常,图片不显示,请求是成功了的,去掉这2 个行内属性能看到图片,就是尺寸位置可能不太对劲。
image

组件版本"version": "1.6.4"

如果宽高计算有问题,能让浏览器默认计算吗,就给个默认宽度或者高度,然后浏览器默认等比计算就行

@mirari
Copy link
Owner

mirari commented Jun 29, 2022

这应该是viewerjs的问题,但是感觉很罕见
计算图片宽高的源码在这里
https://github.com/fengyuanchen/viewerjs/blob/a63fa7992e48c6b98cef89c78198a45465d3d7ae/src/js/utilities.js#L534

@jeff-wangzhen
Copy link
Author

这应该是viewerjs的问题,但是感觉很罕见 计算图片宽高的源码在这里 https://github.com/fengyuanchen/viewerjs/blob/a63fa7992e48c6b98cef89c78198a45465d3d7ae/src/js/utilities.js#L534

是比较少,但算不上很罕见。。那我去那边提吧

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

2 participants