Skip to content
Permalink
Browse files

Fixed #4127 - Resizable: displacement of element (in case of constrai…

…nt resize area)

props raziel057
  • Loading branch information...
rdworth committed Mar 2, 2009
1 parent 58afe89 commit b38b6a75460fcdcc4d95a6096af1bb13d3dce3e9
Showing with 3 additions and 0 deletions.
  1. +3 −0 ui/ui.resizable.js
@@ -690,6 +690,9 @@ $.ui.plugin.add("resizable", "containment", {
self.position.top = self._helper ? co.top : 0;
}

self.offset.left = self.parentData.left+self.position.left;
self.offset.top = self.parentData.top+self.position.top;

var woset = Math.abs( (self._helper ? self.offset.left - cop.left : (self.offset.left - cop.left)) + self.sizeDiff.width ),
hoset = Math.abs( (self._helper ? self.offset.top - cop.top : (self.offset.top - co.top)) + self.sizeDiff.height );

1 comment on commit b38b6a7

@itsadok

This comment has been minimized.

Copy link
Contributor

commented on b38b6a7 May 22, 2011

FYI, this is actually for #4217

Please sign in to comment.
You can’t perform that action at this time.