Browse Source

Merge branch 'release/0.4.6'

Book Pauk 6 years ago
parent
commit
1670df02db
2 changed files with 2 additions and 2 deletions
  1. 1 1
      client/components/Reader/TextPage/DrawHelper.js
  2. 1 1
      package.json

+ 1 - 1
client/components/Reader/TextPage/DrawHelper.js

@@ -26,7 +26,7 @@ export default class DrawHelper {
         const font = this.fontByStyle({});
         const font = this.fontByStyle({});
         const justify = (this.textAlignJustify ? 'text-align: justify; text-align-last: justify;' : '');
         const justify = (this.textAlignJustify ? 'text-align: justify; text-align-last: justify;' : '');
 
 
-        let out = `<div style="width: ${this.w}px; height: ${this.h}px;` + 
+        let out = `<div style="width: ${this.w}px; height: ${this.h + (isScrolling ? this.lineHeight : 0)}px;` + 
             ` position: absolute; top: ${this.fontSize*this.textShift}px; color: ${this.textColor}; font: ${font}; ${justify}` +
             ` position: absolute; top: ${this.fontSize*this.textShift}px; color: ${this.textColor}; font: ${font}; ${justify}` +
             ` line-height: ${this.lineHeight}px; white-space: nowrap; overflow: hidden;">`;
             ` line-height: ${this.lineHeight}px; white-space: nowrap; overflow: hidden;">`;
 
 

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "Liberama",
   "name": "Liberama",
-  "version": "0.4.5",
+  "version": "0.4.6",
   "engines": {
   "engines": {
     "node": ">=10.0.0"
     "node": ">=10.0.0"
   },
   },