diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 251b2ca5b..a9cc95753 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -356,7 +356,7 @@ export const delAttribute('width'); } value = oStyle.removeProperty('width'); - if (value && !oStyle.maxWidth) { + if (parseInt(value,10) && !oStyle.maxWidth) { oStyle.maxWidth = value; oStyle.width = '100%'; }