From 483092d40d27e0911455613f9335d829fd0ede16 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Mon, 3 Feb 2020 01:57:04 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/App.vue | 3 +++ client/components/Reader/TextPage/TextPage.vue | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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();