From c481400f222c871ba5853bc2930a3b8b4375d08b Mon Sep 17 00:00:00 2001 From: Sergei Ratnikov Date: Fri, 23 Sep 2016 18:42:21 +0300 Subject: Resizable: Fix aspectRatio cannot be changed after initialization. Fixes #4186 Closes gh-1750 --- ui/widgets/resizable.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui') 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; } -- cgit v1.2.3