[BUGFIX] RTE not resizable in IE 64/36464/2
authorStanislas Rolland <typo3@sjbr.ca>
Fri, 30 Jan 2015 18:19:51 +0000 (13:19 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Fri, 30 Jan 2015 18:21:59 +0000 (19:21 +0100)
Incorrect test of support for CSS3 resize property.

Releases: master
Resolves: #64660
Change-Id: Id137f476920dcbf05fa028940039fa3191d808f4
Reviewed-on: http://review.typo3.org/36464
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Util/Util.js

index d1637a7..aa688f8 100644 (file)
@@ -145,14 +145,15 @@ define('TYPO3/CMS/Rtehtmlarea/HTMLArea/Util/Util',
                 */
                testCssPropertySupport: function (element, property, value) {
                        var style = element.style;
+                       if (!(property in style)) {
+                               return false;
+                       }
                        var before = style[property];
                        try {
                                style[property] = value;
                        } catch (e) {}
                        var after = style[property];
-                       if (typeof before !== 'undefined') {
-                               style[property] = before;
-                       }
+                       style[property] = before;
                        return before !== after;
                }
        };