Skip to main content

Bug Tracker

Side navigation

#1387 closed bug (wontfix)

Opened July 11, 2007 06:38PM UTC

Closed March 31, 2008 01:45AM UTC

Last modified August 11, 2009 06:08AM UTC

interface plugin: Draggable({containment:'parent'}) uses wrong top/left

Reported by: sgbeal Owned by: stefan
Priority: major Milestone: 1.1.4
Component: interface Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:
Description

Hi!

When elem.Draggable({containment:'parent'}) is used, the SIZE of the contained area seems to be correct, but the coordinates appear to start off at x0,y0, instead of at the real top/left of the parent element. Thus {containment:'parent'} only works as advertized if the parent lives at the top/left of the document (i.e. is the first element). When using containment:[n1,n2,n3,n4], it works as advertized.

Browser: Firefox 2.0.0.4/Linux

The attached HTML file demonstrates this. It needs 2 js files:

jquery.pack.js, interface.js

(edit to suit)

Attachments (1)
  • bug-drag.html (0.8 KB) - added by sgbeal July 11, 2007 06:38PM UTC.

    demonstrates the containment:'parent' x/y bug.

Change History (2)

Changed July 17, 2007 01:45PM UTC by nucflash comment:1

I've encounter the same problem myself. I am using float as well in my page and I get the same behaviour as sgbeal reported. I tried different scenarios (incl. removing all the floats) and the only working solution was to make the parent's position absolute.

Changed March 31, 2008 01:45AM UTC by scott.gonzal comment:2

resolution: → wontfix
status: newclosed

Interface is no longer supported; consider switching to jQuery UI.