Results 103 comments of mirari

I also noticed the same problem with the body being added with a padding-right causing the style on the background to jitter when the viewer pops up. In addition, if...

viewer不支持一些细节上的高度定制,这需要去viewer.js上提需求,但作者可能不会实现。

I'm sorry for not responding for so long. Maybe you can show the problem to me through [codepen.io](https://codepen.io/mirari/pen/PePrVq)

https://github.com/fengyuanchen/viewerjs#hidden

viewerjs在实现过程中没有完全使用容器尺寸,而是部分使用了窗口尺寸,修改样式是可能导致类似问题。但v-viewer只是个壳子,没有涉及这部分逻辑,需要去viewerjs上提issue了。 https://github.com/fengyuanchen/viewerjs/issues

> > 信息不足是没法定位问题的 > > 你好,使用了v-html指令,配合v-viewer使用,在本地没有任何问题,但是打包发布到nginx上面后,点击没有反应,控制台也没有报错。 ![image](https://user-images.githubusercontent.com/115341233/203754001-aa2c906a-8373-4bad-9a2d-c2ff76f8620b.png) 这些信息还是没法定位问题。尝试用其他调用形式看看吧

能提供具体的运行环境和复现代码吗?有没有错误信息?

viewerjs原生没有提供这样的功能,可以自己修改样式,用伪元素实现

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