onComplete, get it's coordinates with getCoordinates() or getStyle('top') & getStyle('left'), get the size of the window or container, translate it to percentage based on those numbers, then use setStyles().

You'll probably want to attach (mouseenter or mousedown) and detach (mouseleave or onComplete) ...

Or something like that.

It must be a rare case indeed to want a draggable element using %.


On Aug 6, 2009, at 1:30 PM, Alice wrote:


example: http://unedible.com/

The Twitter widget I am trying to make draggable is positioned with %,
and I plan on keeping it that way. But, when I make it draggable, it
changes the CSS's % to px. And only for the twtr-profile-widget ID.
HOW DO I FIX THIS? It's seriously bugging me.

Reply via email to