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

Fix min image size, locationOf no longer uses scrollX / Y

This commit is contained in:
Fred Chasen 2017-07-07 13:43:52 -04:00
parent 661d4d77d1
commit aa9c2535d9
3 changed files with 5 additions and 5 deletions

View file

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