Draggable cursorAt problem/bug

Draggable cursorAt problem/bug


Hi all,
I think I've run into a bug in the UI core, but I'm not sure. I
wanted to run this past everyone to see what you think.
On my page I have large draggables with small droppables, so to make
it easier for my users I'm using cursorAt in the draggable options to
specify the center of the draggable element:
$('.draggables').each(function() {
$(this).draggable({ revert: true,
cursorAt: { top: Math.round($(this).height() /
2),
left: Math.round($(this).width() /
2)},
handle: '.handle' });
});
The bug is that when a drag is initiated, the draggable element
*should* snap to the cursorAt-specified horizontal & vertical centers,
but it doesn't. Instead, the element snaps to the horizontal center
only. The top doesn't work; the cursor lines up with the top of the
draggable element. If, instead of top and left I specify bottom and
left, the cursor lines up with the bottom of the draggable element.
In both cases it's position 0.
In firebug, if I set this watch:
Math.round($('#draggable_3').height() / 2)
I get a good return value. This also works for the width. However,
if I try to drag #draggable_3, the cursor is centered at the top of
the element.
Because the width works, I'm thinking that I might have found a bug in
the UI code. Does anybody have any ideas or suggestions?
Thanks!