diff --git a/client/components/App.vue b/client/components/App.vue index 6e096a1b..84dc6909 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -203,6 +203,9 @@ class App extends Vue { return (this.mode !== null && this.mode != 'reader' && this.mode != 'omnireader'); } + set showAsideBar(value) { + } + get isReaderActive() { return this.rootRoute == '/reader'; } diff --git a/client/components/Reader/TextPage/TextPage.vue b/client/components/Reader/TextPage/TextPage.vue index 117022db..29d2325c 100644 --- a/client/components/Reader/TextPage/TextPage.vue +++ b/client/components/Reader/TextPage/TextPage.vue @@ -131,7 +131,11 @@ class TextPage extends Vue { await this.doPageAnimation(); }, 10); - this.$root.$on('resize', () => {this.$nextTick(this.onResize)}); + this.$root.$on('resize', async() => { + this.$nextTick(this.onResize); + await sleep(300); + this.$nextTick(this.onResize); + }); } mounted() { @@ -446,9 +450,6 @@ class TextPage extends Vue { } async onResize() { - /*this.page1 = null; - this.page2 = null; - this.statusBar = null;*/ try { this.calcDrawProps(); this.setBackground();