Better solution for #678

This commit is contained in:
the-djmaze 2022-11-15 23:57:39 +01:00
parent b926d86568
commit 565c8b13fa

View file

@ -233,8 +233,9 @@ export const
if (hasAttribute('width')) {
if (!value) {
value = getAttribute('width');
value = value.includes('%') ? value : value + 'px';
if (1 < pInt(value)) {
value = oStyle.width = value.includes('%') ? value : value + 'px';
oStyle.width = value;
}
}
delAttribute('width');