aboutsummaryrefslogtreecommitdiffstats
path: root/ui/resizable.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2014-03-11 11:50:12 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2014-04-16 18:47:15 +0200
commit3576ceb360eb0381a98f3c6b67d890c3834efa8a (patch)
tree66f79781c94f33dd7f00fcf9eb09a2f8993b1d64 /ui/resizable.js
parent919d9185f2cf586f794b367a2570368fd81f3879 (diff)
downloadjquery-ui-3576ceb360eb0381a98f3c6b67d890c3834efa8a.tar.gz
jquery-ui-3576ceb360eb0381a98f3c6b67d890c3834efa8a.zip
Resizable: Remove bad workaround for draggable+resizable
This adds a compound test page for draggable+resizable, which had no coverage before. Using that page shows that there is no way to reproduce the behaviour described in the original ticket that caused this workaround, since its not possible to resize an element beyond the window boundaries. Therefore removing the workaround, which is 6+ years old and has no test coverage, seems like the sanest approach. Fixes #6939 Closes gh-1210
Diffstat (limited to 'ui/resizable.js')
-rw-r--r--ui/resizable.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/ui/resizable.js b/ui/resizable.js
index 741ff0406..b59f32013 100644
--- a/ui/resizable.js
+++ b/ui/resizable.js
@@ -287,18 +287,10 @@ $.widget("ui.resizable", $.ui.mouse, {
var curleft, curtop, cursor,
o = this.options,
- iniPos = this.element.position(),
el = this.element;
this.resizing = true;
- // Bugfix for http://bugs.jqueryui.com/ticket/1749
- if ( (/absolute/).test( el.css("position") ) ) {
- el.css({ position: "absolute", top: el.css("top"), left: el.css("left") });
- } else if (el.is(".ui-draggable")) {
- el.css({ position: "absolute", top: iniPos.top, left: iniPos.left });
- }
-
this._renderProxy();
curleft = this._num(this.helper.css("left"));