[Proto-Scripty] Re: scriptaculous dragdrop left percentage

2009-03-27 Thread Conchur
I've just come up against the same issue, making percentage-based positioned elements draggable without flickering. The scriptaculous startDrag function doesn't notify the draggable element of the onStart method until after the left/right co-ordinates have been initialised, so there's no opportun

[Proto-Scripty] Re: scriptaculous dragdrop left percentage

2009-03-28 Thread Jay
That's a pretty good workaround I guess. I had a little confusion implementing it because I used a "handle" for the draggable, but "observe"d the click on the draggable element, which had the left style, so I got pretty confused for a while. These sorts of events are challenging to debug even in F

[Proto-Scripty] Re: scriptaculous dragdrop left percentage

2009-03-29 Thread Conchur
Yeah, the clean-up has to happen onmousedown, rather than onEnd as I said previosuly. I did some more testing and found I still needed to catch the onEnd event to clean-up after unusual cases such as when the element is dragged off screen in IE... In the end I added a boolean flag to test if the

[Proto-Scripty] Re: scriptaculous dragdrop left percentage

2009-03-29 Thread Conchur
I meant to add that the method detailed above starts and ends with the elements in % layout (even if element is clicked but not dragged), so resizing the window is handled as expected by the CSS declarations. There's no need for a window resize event listener. HTH, Conchur. > On Mar 28, 11:17 pm