浏览代码

Поправки

Book Pauk 6 年之前
父节点
当前提交
dfe57ed20b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/components/Reader/TextPage/TextPage.vue

+ 2 - 2
client/components/Reader/TextPage/TextPage.vue

@@ -266,11 +266,11 @@ class TextPage extends Vue {
 
     async calcPropsAndLoadFonts(omitLoadFonts) {
         this.calcDrawProps();
+        this.setBackground();
 
         if (!omitLoadFonts)
             await this.loadFonts();
 
-        this.setBackground();
         this.draw();
 
         // шрифты хрен знает когда подгружаются, поэтому
@@ -347,7 +347,7 @@ class TextPage extends Vue {
                 this.statusBar = null;
 
                 this.calcPropsAndLoadFonts();
-                
+
                 this.refreshTime();
                 if (this.lazyParseEnabled)
                     this.lazyParsePara();