Skip to content

Commit

Permalink
Resolve #869
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Jan 26, 2023
1 parent d65d77e commit 3b43a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/Common/Html.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export const
delAttribute('width');
}
value = oStyle.removeProperty('width');
if (value) {
if (value && !oStyle.maxWidth) {
oStyle.maxWidth = value;
oStyle.width = '100%';
}
Expand All @@ -252,7 +252,7 @@ export const
delAttribute('height');
}
value = oStyle.removeProperty('height');
if (value) {
if (value && !oStyle.maxHeight) {
oStyle.maxHeight = value;
}
}
Expand Down

0 comments on commit 3b43a8b

Please sign in to comment.