]> source.dussan.org Git - jquery-ui.git/commitdiff
Resizable: Fixed #4099 - Copy .data("resizable") to the wrapper element
authorEduardo Lundgren <eduardolundgren@gmail.com>
Mon, 9 Feb 2009 04:36:43 +0000 (04:36 +0000)
committerEduardo Lundgren <eduardolundgren@gmail.com>
Mon, 9 Feb 2009 04:36:43 +0000 (04:36 +0000)
ui/ui.resizable.js

index 17d7b493bc15f76b4374ad24fcad92f01eb7d89b..971808e98043c9c8f35fbffb70840097a7d3c6fb 100644 (file)
@@ -46,7 +46,10 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
                        );
 
                        //Overwrite the original this.element
-                       this.element = this.element.parent();
+                       this.element = this.element.parent().data(
+                               "resizable", this.element.data('resizable')
+                       );
+
                        this.elementIsWrapper = true;
 
                        //Move margins to the wrapper