Skip to main content

Search and Top Navigation

#5181 closed bug (wontfix)

Opened February 13, 2010 03:30PM UTC

Closed October 12, 2010 01:14AM UTC

No test for Constraints when Array passed : Patch included

Reported by: macarthy Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.draggable Version: 1.8rc1
Keywords: Cc:
Blocked by: Blocking:

The docs mention that an array can be used to constrain an item being dragged. I believe there is a bug, in constraining the element in that the Constraints do not take into consideration the height/width of the element being dragged.

I've created a patch with 2 new tests, one passes (when dragged up and left) and one fails (down and right).

My first bug report and patch, so be gentle :-)

From the docs:

Constrains dragging to within the bounds of the specified element or region. Possible string values: 'parent', 'document', 'window', [x1, y1, x2, y2].
Attachments (1)
  • draggable_options.patch (1.4 KB) - added by macarthy February 13, 2010 03:31PM UTC.

    new tests for contrain by array

Change History (2)

Changed February 14, 2010 01:39AM UTC by scottgonzalez comment:1

milestone: TBD1.8

Changed October 12, 2010 01:14AM UTC by scottgonzalez comment:2

resolution: → wontfix
status: newclosed

Containing by an array will be dropped in the draggable rewrite. This should be built as an extension by modifying ui.position in the drag event.