1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Fix adjustImages max-height

This commit is contained in:
Fred Chasen 2017-02-24 19:35:13 -05:00
parent 4fe564f03e
commit f17b7c7443
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "epubjs", "name": "epubjs",
"version": "0.3.13", "version": "0.3.14",
"description": "Parse and Render Epubs", "description": "Parse and Render Epubs",
"main": "lib/index.js", "main": "lib/index.js",
"jsnext:main": "src/index.js", "jsnext:main": "src/index.js",

View file

@ -605,7 +605,7 @@ class Rendition {
contents.addStylesheetRules({ contents.addStylesheetRules({
"img" : { "img" : {
"max-width": (this._layout.columnWidth) + "px !important", "max-width": (this._layout.columnWidth) + "px !important",
"max-width": (this._layout.columnWidth) + "px !important", "max-height": (this._layout.height) + "px !important",
"object-fit": "contain", "object-fit": "contain",
"page-break-inside": "avoid" "page-break-inside": "avoid"
} }