aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/resizable.js
diff options
context:
space:
mode:
authorSergei Ratnikov <sergeir82@gmail.com>2016-09-23 18:42:21 +0300
committerScott González <scott.gonzalez@gmail.com>2016-09-28 11:55:13 -0400
commitc481400f222c871ba5853bc2930a3b8b4375d08b (patch)
treef3483753045df629efc76c9933a39206ea4d3331 /ui/widgets/resizable.js
parentc218bee80d7b7858b7e2b7c44d01d6995a18b6e4 (diff)
downloadjquery-ui-c481400f222c871ba5853bc2930a3b8b4375d08b.tar.gz
jquery-ui-c481400f222c871ba5853bc2930a3b8b4375d08b.zip
Resizable: Fix aspectRatio cannot be changed after initialization.
Fixes #4186 Closes gh-1750
Diffstat (limited to 'ui/widgets/resizable.js')
-rw-r--r--ui/widgets/resizable.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/widgets/resizable.js b/ui/widgets/resizable.js
index 74863a055..f20bc791d 100644
--- a/ui/widgets/resizable.js
+++ b/ui/widgets/resizable.js
@@ -226,6 +226,9 @@ $.widget( "ui.resizable", $.ui.mouse, {
this._removeHandles();
this._setupHandles();
break;
+ case "aspectRatio":
+ this._aspectRatio = !!value;
+ break;
default:
break;
}