coolispaul
asked on
JQuery draggable helper
Hi,
I am using a helper to create a new elemnt to drag. This element is initially set to be positioned absolutely -42px from top . But, when the helper gets activated the top position gets reset to 0.
Is there a way to prevent the absolute position getting reset?
This also affects "revert". i.e when the element is not dropped on the target it reverts back to initial position, which isnt the absolute position i set within css
Thanks
I am using a helper to create a new elemnt to drag. This element is initially set to be positioned absolutely -42px from top . But, when the helper gets activated the top position gets reset to 0.
Is there a way to prevent the absolute position getting reset?
This also affects "revert". i.e when the element is not dropped on the target it reverts back to initial position, which isnt the absolute position i set within css
Thanks
ASKER
well, no because its positioned relative to another element.
essentially, it sits on top of another element.
I want the "helper" to maintain this position, but it goes back to its actual position on the page.
Thanks
essentially, it sits on top of another element.
I want the "helper" to maintain this position, but it goes back to its actual position on the page.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
oh ok - thanks for that
'll try and fix based on your example
Thanks again
'll try and fix based on your example
Thanks again
top: -42px will put your element off screen, what are you trying to accomplish?