come mai this.$refs.container non esiste?

This commit is contained in:
2025-06-24 14:02:15 +02:00
parent 2947ae8440
commit 80b0c8a9de
+2
View File
@@ -209,8 +209,10 @@ export default {
this.$refs.iframe.appendStyle(this.$options.rotateWrapperStyle)
// TODO: element resize replace window resize with Observe
this.handleResize = throttle(() => {
try{
this.viewportHeight = this.$refs.container.clientHeight
this.viewportWidth = this.$refs.viewerScroller.clientWidth
}catch(e){}
}, 100)
window.addEventListener('resize', this.handleResize)