aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/effects.explode.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-05-28 18:23:55 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-05-28 18:23:55 +0000
commit3fd0d70dee119fa7e4e821d5975056d539d86952 (patch)
treeb140759c0fd42cbb482bc18b895146276aa23ae0 /ui/source/effects.explode.js
parentdd096c1e95b4f89706de3201fec85adeebf94edb (diff)
downloadjquery-ui-3fd0d70dee119fa7e4e821d5975056d539d86952.tar.gz
jquery-ui-3fd0d70dee119fa7e4e821d5975056d539d86952.zip
effects: removed effect 'fade' (honestly not needed)
demos: added effects demo page effects: fixed many callback issues and other small issues
Diffstat (limited to 'ui/source/effects.explode.js')
-rw-r--r--ui/source/effects.explode.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/source/effects.explode.js b/ui/source/effects.explode.js
index 4962c5d93..78d37e7ff 100644
--- a/ui/source/effects.explode.js
+++ b/ui/source/effects.explode.js
@@ -10,8 +10,13 @@
o.options.mode = o.options.mode == 'toggle' ? ($(this).is(':visible') ? 'hide' : 'show') : o.options.mode;
var el = $(this).show().css('visibility', 'hidden');
var offset = el.offset();
- var width = el.outerWidth();
- var height = el.outerHeight();
+
+ //Substract the margins - not fixing the problem yet.
+ offset.top -= parseInt(el.css("marginTop")) || 0;
+ offset.left -= parseInt(el.css("marginLeft")) || 0;
+
+ var width = el.outerWidth(true);
+ var height = el.outerHeight(true);
for(var i=0;i<rows;i++) { // =
for(var j=0;j<cells;j++) { // ||