Use window innerWidth for measurements
parent
2663d00330
commit
200bf8c17d
|
@ -171,7 +171,7 @@ export default {
|
||||||
this.$refs.scroller.$el.style.height = (height - 4) + 'px';
|
this.$refs.scroller.$el.style.height = (height - 4) + 'px';
|
||||||
|
|
||||||
// Mobile devices
|
// Mobile devices
|
||||||
if (width < 768) {
|
if (window.innerWidth <= 768) {
|
||||||
width += 10;
|
width += 10;
|
||||||
this.isMobile = true;
|
this.isMobile = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue