Skip to main content

Search and Top Navigation

#6653 closed bug (notabug)

Opened November 15, 2010 08:30PM UTC

Closed November 16, 2010 01:53PM UTC

Last modified October 11, 2012 09:15PM UTC

Transfer effect misses target

Reported by: V1 Owned by:
Priority: minor Milestone:
Component: ui.effects.* (individual effect) Version: 1.8.6
Keywords: Cc:
Blocked by: Blocking:
Description

The jQuery ui transfer effect misses it's target element if a margin ( auto ) has been

applied to the body element. When you resize the browser, it only get worse.

Reproducible bug case:

http://dl.dropbox.com/u/1381492/bugs/jqueryui/transfer.html

You can "patch" this case by changing the appendTo(document.body) => appendTo(document.documentElement)

but if a user applies margins to the HTML element this will reproduce the same issue. So the best thing would probably to detect if the element that we are appending to has a margin or padding applied.

The offeset() method however reports top and left of 0 for the body and documentElement we should be using jQuery.css(document.documentElement, "marginLeft") to get the correct position of the root elements.

Attachments (0)
Change History (2)

Changed November 16, 2010 01:53PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

We don't support any position or dimension settings on html or body.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted