Hi,
I'm a jQuery/UI beginner and am currently starting out to build a card
game. I use jQuery 1.3.2 and UI 1.7.2.
I am using UI's draggables and droppables to achieve placing cards,
but I am running into a positional problem: I drop a card (draggable)
into a designated container div (droppable) and then have the card
appended to the container. That works according to Firebug, but the
card gets inline styles of e.g. "position:relative;" and top: 171px"
so the card visually ends up below the container.
Firebug shows this after inspecting the dropped card:
element.style {
left:9px;
opacity:1;
position:relative;
top:171px;
}
No idea where the styles are coming from, actually. Checked the CSS
and jQuery UI calls for the draggables and droppables, too. I don't
have those styles set in my files, yet the positioning occurs.
My draggable code looks like this: http://pastie.org/578285
More info needed? I'll gladly provide that.
Cheers,
- Thorsten
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---