It looks like scalebar ''top'' style changes dynamically in
firefox but
not in anything else.
there is a currentDelta function in draggable that only looks at the
''top'' and ''left'' values.
So it look like in everyother browser that both those values get
defaulted to 0, 0. Which is good for your left value but not for the
top.
I think you have to dynamically set the top position of the scalebar
box in in order for the revert to work.
Matt
On Dec 13, 10:19 am, "Les"
<les.szkla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Why the draggable scalebar (bottom-left corner) reverts to the wrong
> corner (in Safari and IE 6 and 7)?
>
> It returns to the same corner in FF 2.0 and Opera.
>
> Here''s the code:
>
> new Draggable(''scalebar'', {revert:true});
>
> http://www.slippymap.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---