}
updateLayout() {
- const newLayout = (window.innerWidth <= 1000) ? 'mobile' : 'desktop';
+ let newLayout = 'tablet';
+ if (window.innerWidth <= 1000) newLayout = 'mobile';
+ if (window.innerWidth >= 1400) newLayout = 'desktop';
if (newLayout === this.lastLayoutType) return;
if (this.onDestroy) {
if (newLayout === 'desktop') {
this.setupDesktop();
- } else {
+ } else if (newLayout === 'mobile') {
this.setupMobile();
}
}
setupDesktop() {
- // TODO
+ //
}
/**