Explorar o código

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

Book Pauk %!s(int64=5) %!d(string=hai) anos
pai
achega
483092d40d

+ 3 - 0
client/components/App.vue

@@ -203,6 +203,9 @@ class App extends Vue {
         return (this.mode !== null && this.mode != 'reader' && this.mode != 'omnireader');
         return (this.mode !== null && this.mode != 'reader' && this.mode != 'omnireader');
     }
     }
 
 
+    set showAsideBar(value) {
+    }
+
     get isReaderActive() {
     get isReaderActive() {
         return this.rootRoute == '/reader';
         return this.rootRoute == '/reader';
     }
     }

+ 5 - 4
client/components/Reader/TextPage/TextPage.vue

@@ -131,7 +131,11 @@ class TextPage extends Vue {
             await this.doPageAnimation();
             await this.doPageAnimation();
         }, 10);
         }, 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() {
     mounted() {
@@ -446,9 +450,6 @@ class TextPage extends Vue {
     }
     }
 
 
     async onResize() {
     async onResize() {
-        /*this.page1 = null;
-        this.page2 = null;
-        this.statusBar = null;*/
         try {
         try {
             this.calcDrawProps();
             this.calcDrawProps();
             this.setBackground();
             this.setBackground();