From 47cd5b6fca9ea36eee04165b7bf07448d5f34b27 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 19 Feb 2009 02:49:54 +0000 Subject: Resizable: Fixed containment within relative/absolute positioned parent. Fixes #3882 - Left Margin Calculated Incorrectly (Using Containment). Patch provided by Brad Dunbar. --- ui/ui.resizable.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui') diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index bfa04ede2..114aab830 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -690,6 +690,11 @@ $.ui.plugin.add("resizable", "containment", { 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 ); + var isParent = self.containerElement.get(0) == self.element.parent().get(0), + isOffsetRelative = /relative|absolute/.test(self.containerElement.css('position')); + + if(isParent && isOffsetRelative) woset -= self.parentData.left; + if (woset + self.size.width >= self.parentData.width) { self.size.width = self.parentData.width - woset; if (pRatio) self.size.height = self.size.width / o.aspectRatio; -- cgit v1.2.3 option> Mirror of redmine code source: https://github.com/redmine/redminewww-data
summaryrefslogtreecommitdiffstats
path: root/app/views/projects/settings/_boards.rhtml
blob: e3f4629c189fb0fca373f162646a37ecadbd0477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24