+++ /dev/null
-<!doctype html>
-<html lang="en">
-<head>
- <title>Resizable Visual Test : Resizable option preventDefault false</title>
- <link rel="stylesheet" href="../visual.css" type="text/css" />
- <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css" />
- <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
- <script type="text/javascript" src="../../../ui/ui.core.js"></script>
- <script type="text/javascript" src="../../../ui/ui.resizable.js"></script>
- <script type="text/javascript">
- $(function() {
- $("#resizable").resizable({
- preventDefault: false
- });
- });
- </script>
-</head>
-<body>
-
-<textarea id="resizable">Resizable</texarea>
-
-</body>
-</html>
+++ /dev/null
-<!doctype html>
-<html lang="en">
-<head>
- <title>Resizable Visual Test : Resizable option preventDefault true</title>
- <link rel="stylesheet" href="../visual.css" type="text/css" />
- <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css" />
- <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
- <script type="text/javascript" src="../../../ui/ui.core.js"></script>
- <script type="text/javascript" src="../../../ui/ui.resizable.js"></script>
- <script type="text/javascript">
- $(function() {
- $("#resizable").resizable({
- preventDefault: true
- });
- });
- </script>
-</head>
-<body>
-
-<textarea id="resizable">Resizable</texarea>
-
-</body>
-</html>
this.originalElement.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0});
//Prevent Safari textarea resize
- if ($.browser.safari && o.preventDefault) this.originalElement.css('resize', 'none');
+ this.originalResizeStyle = this.originalElement.css('resize');
+ this.originalElement.css('resize', 'none');
//Push the actual element to our proportionallyResize internal array
this._proportionallyResizeElements.push(this.originalElement.css({ position: 'static', zoom: 1, display: 'block' }));
//TODO: Unwrap at same DOM position
if (this.elementIsWrapper) {
_destroy(this.element);
- this.wrapper.parent().append(
+ var wrapper = this.element;
+ wrapper.parent().append(
this.originalElement.css({
- position: this.wrapper.css('position'),
- width: this.wrapper.outerWidth(),
- height: this.wrapper.outerHeight(),
- top: this.wrapper.css('top'),
- left: this.wrapper.css('left')
+ position: wrapper.css('position'),
+ width: wrapper.outerWidth(),
+ height: wrapper.outerHeight(),
+ top: wrapper.css('top'),
+ left: wrapper.css('left')
})
).end().remove();
}
+ this.originalElement.css('resize', this.originalResizeStyle);
_destroy(this.originalElement);
},
maxWidth: null,
minHeight: 10,
minWidth: 10,
- preventDefault: true,
zIndex: 1000
}
});