aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-05-26 11:29:02 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-05-26 11:29:02 +0000
commit062d02ae5c339a62acb84177a6abbdf3bdb5f7d6 (patch)
treec0a05f033f73d781b946d98b720d98c7d6ff6e2f /ui/source
parent356ea57634e423511ea22107d3e6bd1d04bf1b6d (diff)
downloadjquery-ui-062d02ae5c339a62acb84177a6abbdf3bdb5f7d6.tar.gz
jquery-ui-062d02ae5c339a62acb84177a6abbdf3bdb5f7d6.zip
sortable: fixed containment option
Diffstat (limited to 'ui/source')
-rw-r--r--ui/source/ui.sortable.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/source/ui.sortable.js b/ui/source/ui.sortable.js
index aa44faf18..24339476d 100644
--- a/ui/source/ui.sortable.js
+++ b/ui/source/ui.sortable.js
@@ -357,10 +357,10 @@
var co = $(o.containment).offset();
this.containment = [
- co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left,
- co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top,
- co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.currentItem.css("marginRight"),10) || 0),
- co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.currentItem.css("marginBottom"),10) || 0)
+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left,
+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top,
+ co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.currentItem.css("marginRight"),10) || 0),
+ co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.currentItem.css("marginBottom"),10) || 0)
];
}
}