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