aselushat / dragtable

Automatically exported from code.google.com/p/dragtable
0 stars 0 forks source link

Display position of dragged column incorrect with "position: relative" #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If the draggable table is inside a box with "position: relative", when 
dragging a column it will be displayed offset to the right and down from 
the mouse cursor. This is due to "position: absolute" being relative to 
any parent DOM node with "position: absolute" or "position: relative" set 
(see http://www.w3.org/TR/CSS21/visudet.html#containing-block-details).

Attached to this bug report is a patch that fixes the problem.

Original issue reported on code.google.com by johndoej...@googlemail.com on 2 Jul 2008 at 12:23

Attachments:

GoogleCodeExporter commented 9 years ago
the attach you mention has an error and can't be seen

Original comment by enbert...@gmail.com on 5 Jul 2008 at 11:16

GoogleCodeExporter commented 9 years ago
Hope it works now.

Original comment by johndoej...@googlemail.com on 7 Jul 2008 at 8:39

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, works great!

Many thanks!

Original comment by jeremy.c...@gmail.com on 10 Jul 2008 at 3:24

GoogleCodeExporter commented 9 years ago
Revision 12 incorporates this patch and includes a test case. Many thanks for 
not only identifying the problem 
but also fixing it!

Original comment by danvdk on 30 Jun 2009 at 7:30