come mai this.$refs.container non esiste?
This commit is contained in:
1 parent
2947ae8440
commit
80b0c8a9de
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user