diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2015-04-05 11:37:53 -0400 |
---|---|---|
committer | TJ VanToll <tj.vantoll@gmail.com> | 2015-04-08 13:15:41 -0400 |
commit | d0ea32e3ad613eaaa523d0c88c776dab2b26b25f (patch) | |
tree | 19c7ce68ab31012f1e1fb0b6e6268c5adbc943d1 /ui/draggable.js | |
parent | c770605db05347edfa9c6224aebd42974092ed22 (diff) | |
download | jquery-ui-d0ea32e3ad613eaaa523d0c88c776dab2b26b25f.tar.gz jquery-ui-d0ea32e3ad613eaaa523d0c88c776dab2b26b25f.zip |
Revert "Draggable: Set explicit width/height instead of right/bottom"
This reverts commit 8eca7b8f45885d20c13f1bf64cad8bee5fc1d5c5.
Fixes #10725
Diffstat (limited to 'ui/draggable.js')
-rw-r--r-- | ui/draggable.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ui/draggable.js b/ui/draggable.js index 2aced90c3..d938be1e8 100644 --- a/ui/draggable.js +++ b/ui/draggable.js @@ -213,10 +213,6 @@ $.widget("ui.draggable", $.ui.mouse, { $.ui.ddmanager.prepareOffsets(this, event); } - // Reset helper's right/bottom css if they're set and set explicit width/height instead - // as this prevents resizing of elements with right/bottom set (see #7772) - this._normalizeRightBottom(); - this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position //If the ddmanager is used for droppables, inform the manager that dragging has started (see #5003) @@ -659,17 +655,6 @@ $.widget("ui.draggable", $.ui.mouse, { } }, - _normalizeRightBottom: function() { - if ( this.options.axis !== "y" && this.helper.css( "right" ) !== "auto" ) { - this.helper.width( this.helper.width() ); - this.helper.css( "right", "auto" ); - } - if ( this.options.axis !== "x" && this.helper.css( "bottom" ) !== "auto" ) { - this.helper.height( this.helper.height() ); - this.helper.css( "bottom", "auto" ); - } - }, - // From now on bulk stuff - mainly helpers _trigger: function( type, event, ui ) { |