0

When I drag from my first grid (left on the image) to my second grid (right on my image) I have to hover the item over the area that I circeled with red.... If I don't drop it there, it hops back to the first grid.

Drag Drop Image

This is not how I would expect the grids to work together?

Expected is: If I drop a item anywhere in the grid, it should drop itself into that grid.

Is there any way to make this happen?

4

1 回答 1

0

我建议您height: "auto"在两个网格中都使用选项。当前的问题是您使用了 gridDnD 方法的选项connectWith: "#grid2"但是id=grid2 的第二个网格仅由您标记为 red 的目标表的一部分组成。“网格”的其他部分是<div>存在于<table id="grid2">. 所以拖放不能像你期望的那样工作。您尝试离开目标网格。

于 2013-07-10T18:35:20.143 回答