Permalink
Browse files

Fixed issue with styles not updating properly on resize.

  • Loading branch information...
1 parent 4c689ce commit 6798270064b7989835df5694e6284c997f606324 @spocke spocke committed Jun 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 jscripts/tiny_mce/classes/util/Quirks.js
@@ -715,14 +715,14 @@ tinymce.util.Quirks = function(editor) {
// Resize by using style or attribute
if (mouseDownImg.style.width) {
- mouseDownImg.style.width = width + 'px';
+ dom.setStyle(mouseDownImg, 'width', width);
} else {
dom.setAttrib(mouseDownImg, 'width', width);
}
// Resize by using style or attribute
if (mouseDownImg.style.height) {
- mouseDownImg.style.height = height + 'px';
+ dom.setStyle(mouseDownImg, 'height', height);
} else {
dom.setAttrib(mouseDownImg, 'height', height);
}

0 comments on commit 6798270

Please sign in to comment.