Opened 13 years ago
Closed 13 years ago
#7326 closed defect (fixed)
dojox.grid: padding on body causes column resizing to jump around
Reported by: | Nathan Toone | Owned by: | Nathan Toone |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | DnD | Version: | 1.1.1 |
Keywords: | Cc: | Bryan Forbes, Eugene Lazutkin | |
Blocked By: | Blocking: |
Description
When there is padding on the body element, the column resizing jumps around by that amount.
Attachments (1)
Change History (3)
comment:1 Changed 13 years ago by
Cc: | Eugene Lazutkin added |
---|---|
Component: | DojoX Grid → DnD |
Changed 13 years ago by
Attachment: | dndpadding.patch added |
---|
Patch which removes the body's padding/margin when calculating the move distance.
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This appears to be a dojo.dnd issue. What it looks like is happening is this:
the event.pageX/pageY that is used to calculate the initial margin box in the mover's constructor includes the body's padding - it's the *real* x/y value in the page. However, in onFirstMove, setting the node's position to "absolute" and then using marginBox on it does not include the body's padding (also correctly). We need to subtract this difference in onFirstMove.