Небольшие поправки

This commit is contained in:
Book Pauk
2020-02-03 01:57:04 +07:00
parent 88cb02f6bc
commit 483092d40d
2 changed files with 8 additions and 4 deletions

View File

@@ -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';
}

View File

@@ -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();