Opened 12 years ago

Closed 12 years ago

#3224 closed enhancement (fixed)

DnD: constrained moves

Reported by: Eugene Lazutkin Owned by: Eugene Lazutkin
Priority: high Milestone: 0.9
Component: DnD Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

From Ben Lowery:

  • constrain the move to one axis and within the window
  • constrain the move to one axis and multiple ranges within that axis (on x, 0-10 is ok, 11-100 is not, 100 -> viewport width is ok)
  • constrain the move to the viewport

Viewport is the portion of the overall document that's currently viewable.

Change History (9)

comment:1 Changed 12 years ago by Eugene Lazutkin

Owner: changed from anonymous to Eugene Lazutkin

comment:2 Changed 12 years ago by Eugene Lazutkin

Component: GeneralDnD

comment:3 Changed 12 years ago by Eugene Lazutkin

Status: newassigned

comment:4 Changed 12 years ago by Eugene Lazutkin

(In [8956]) Implements enhanced styles of drag detection, and customizable Mover. Includes box-constrained, and parent-constrained movers. A grid mover is implemented as an example of custom mover. Refs #3223. Refs #3224.

comment:5 Changed 12 years ago by Eugene Lazutkin

Need more testing on different browsers. I saw some small artifacts related to non-zero margins, and paddings on Opera.

comment:6 Changed 12 years ago by Eugene Lazutkin

Need to add inline documentation.

comment:7 Changed 12 years ago by Eugene Lazutkin

(In [9077]) Added docs, changed the API for dojo.dnd2.parentConstrainedMover to make it more flexible, fixed static positioning of a parent, broken absolute positioning of a parent. Refs #3224.

comment:8 Changed 12 years ago by Eugene Lazutkin

(In [9344]) Updates to accomodate new refactored html.js, and minor typo fixes. Refs #3224.

comment:9 Changed 12 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed

(In [9345]) IE-specific fixes. Fixes #3224.

Note: See TracTickets for help on using tickets.