[ka-Map-users] ka-Map and scroll bars

Brent Pedersen bpederse at gmail.com
Tue Apr 25 18:30:27 EDT 2006


hi, according to prototype.js, you should use:

event.pageX || (event.clientX +
      (document.documentElement.scrollLeft || document.body.scrollLeft))


so in kaQuery.js whereever you see e.clientX, replace with that snippet
above. (with e insteand of event) likewise for the corresponding clientY
values.



On 4/25/06, Pg <pg.navone at gmail.com> wrote:
>
> I've loaded ka-Map in a div of an html page with a form and many other
> stuff.
> Everiting works until I use the scroll bars to scroll my page.
>
> When the bars are in a non-zero position the pixToGeo() doesn't work
> properly and semms to be affected by an offset (in pixel) similar to
> the window scroll.
>
> Does anybody know how (and where) to 'adjust' the window scroll?
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20060425/07645b68/attachment.html


More information about the ka-Map-users mailing list