This commit is contained in:
the-djmaze 2023-01-26 20:03:07 +01:00
parent d65d77ef2f
commit 3b43a8bc78

View file

@ -241,7 +241,7 @@ export const
delAttribute('width');
}
value = oStyle.removeProperty('width');
if (value) {
if (value && !oStyle.maxWidth) {
oStyle.maxWidth = value;
oStyle.width = '100%';
}
@ -252,7 +252,7 @@ export const
delAttribute('height');
}
value = oStyle.removeProperty('height');
if (value) {
if (value && !oStyle.maxHeight) {
oStyle.maxHeight = value;
}
}