File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 491
491
created : function ( ) {
492
492
window . addEventListener ( "resize" , this . getWindowSize ) , this . getWindowSize ( ) ;
493
493
} ,
494
+ mounted : function ( ) {
495
+ this . getWindowSize ( ) ;
496
+ } ,
494
497
beforeDestroy : function ( ) {
495
498
window . removeEventListener ( "resize" , this . getWindowSize ) ;
496
499
} ,
497
500
methods : {
498
501
getWindowSize : function ( ) {
499
- this . windowHeight = window . innerHeight , this . windowWidth = window . innerWidth ;
502
+ this . $el && ( this . windowHeight = this . $el . clientHeight , this . windowWidth = this . $el . clientWidth ) ;
500
503
}
501
504
}
502
505
} ;
558
561
on : {
559
562
mousedown : _vm . mousedown ,
560
563
touchstart : function ( $event ) {
561
- $event . stopPropagation ( ) , _vm . mousedown ( $event ) ;
564
+ return $event . stopPropagation ( ) , _vm . mousedown ( $event ) ;
562
565
}
563
566
}
564
567
} , [ _vm . _t ( "default" ) ] , 2 ) ;
You can’t perform that action at this time.
0 commit comments