From ab4638b10aa2dfbef9d95cd42d893a46708a6cb7 Mon Sep 17 00:00:00 2001 From: iMefisto Date: Wed, 15 Feb 2017 08:03:44 -0300 Subject: [PATCH] fix css rule --- src/rendition.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rendition.js b/src/rendition.js index 810b581..02c1348 100644 --- a/src/rendition.js +++ b/src/rendition.js @@ -598,8 +598,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) + "px !important"], + ["max-height", (this._layout.height) + "px !important"], ["object-fit", "contain"], ["page-break-inside", "avoid"] ]