Opened 11 years ago

Closed 9 years ago

#3968 closed bug (fixed)

effects explode: explodes from the right instead of from the center

Reported by: rdworth Owned by: Corey Frang
Priority: major Milestone: 1.9.0
Component: ui.effects.* (individual effect) Version: 1.6rc5
Keywords: Cc:
Blocked by: Blocking:

Description

The explode effect when viewed in Safari is centered at the right middle instead of the center middle. See

http://jquery-ui.googlecode.com/svn/tags/1.6rc5/demos/effects_showhide/explode.html

Change History (11)

comment:1 Changed 11 years ago by Scott González

This is caused by a bug in Safari where the computed value for marginRight is actually all of the remaining space between the right edge of the element and the right edge of the parent element. This can be fixed by calling .outerWidth() without passing in true, but then the effect won't work on elements that have a margin.

comment:2 Changed 11 years ago by Scott González

Summary: effects explode: explodes from the right instead of from the centereffects explode: [webkit bug] explodes from the right instead of from the center

comment:3 Changed 11 years ago by Scott González

Using absolute positioning prevents this problem.

comment:4 Changed 11 years ago by Scott González

Milestone: 1.61.next

Fixed demo in r1954. Bumping to 1.next.

comment:5 Changed 9 years ago by Scott González

Priority: criticalmajor

comment:6 Changed 9 years ago by Corey Frang

I'm beginning to think after some digging that the explode effect actually wants .outerWidth() not .outerWidth(true) a few other mathematical improvements led me here: http://jsfiddle.net/gnarf/QJ9Y9/

comment:7 Changed 9 years ago by Scott González

That looks much better.

comment:8 Changed 9 years ago by Corey Frang

Milestone: 1.next1.9
Owner: set to Corey Frang
Status: newassigned

comment:9 Changed 9 years ago by Corey Frang

Summary: effects explode: [webkit bug] explodes from the right instead of from the centereffects explode: explodes from the right instead of from the center

comment:11 Changed 9 years ago by Scott González

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.