I recently started a bounty for this question in hopes of resolving similar issues I had with jQuery UI sortables and CSS3 scaled containers. However, my case is more complex.
Furthermore, only later on did I realize I needed to disallow overflowing of the containers' contents. Therefor I had to set overflow: hidden
on them and have the ui.helper
be cloned and appended to document.body
. Luckily, that actually seemed to simplify adjusting the ui.helper
, in that I only needed to copy transform
and transform-origin
to play nice with its positioning.
However, after fiddling around with the other suggested idea, given in the selected answer, about adjusting the item
dimensions, I still can't seem to make my case work.
Please see my case in a fiddle. For a better experience of the problem I would suggest to view the result pane individually.
The problem is that when I try to move an item to a container following its current container, jQuery UI has problems detecting the intersection. This appears to have something to do with the perceived width of either the item itself or the ui.helper
, since moving to preceding containers seem to work fine. However, I'm just not sure where to look.
And even though I suspect refreshPositions()
is relevant to my problem — which is basically what I'm trying to accomplish in fixStart()
, but for all containers — it doesn't appear to do a whole lot.
My question, therefor, is: what is it that actually needs to be adjusted for jQuery UI to properly detect intersections, in this case?
Edit: I've managed to solve it, but I'd still love to see a "cleaner" solution, if possible.