Skip to content

Commit

Permalink
Fix #1275 | Persist width styling
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerWoo committed Jun 6, 2019
1 parent db80f46 commit 21c40b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/dragresize_ie11.js
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,11 @@

const image = wrapper.$.querySelector('img');

image.removeAttribute('style');
let imageStyles = image.getAttribute('style');
let widthStyles = /(width:.*?;)/g.exec(imageStyles);
let widthStyle = widthStyles[0];

image.setAttribute('style', widthStyle);
}
}

Expand Down

0 comments on commit 21c40b3

Please sign in to comment.