come mai this.$refs.container non esiste?
This commit is contained in:
@@ -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