From 32c1f148230b2f3223d6c3a86b878ba9b7520585 Mon Sep 17 00:00:00 2001
From: Paul Sinnema
Date: Fri, 6 Sep 2013 14:04:45 +0200
Subject: [PATCH] Resizable: the _change calculates the left and with wrong for
'w:'. Fixed #9540 - resize does not stop at 'west' side inside div with
'absolute' position
---
ui/jquery.ui.resizable.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js
index aab93b57fd7..bb2844e26af 100644
--- a/ui/jquery.ui.resizable.js
+++ b/ui/jquery.ui.resizable.js
@@ -623,6 +623,9 @@ $.widget("ui.resizable", $.ui.mouse, {
},
w: function(event, dx) {
var cs = this.originalSize, sp = this.originalPosition;
+ if ((sp.left + dx) < 0) {
+ dx = -sp.left;
+ }
return { left: sp.left + dx, width: cs.width - dx };
},
n: function(event, dx, dy) {