I've tracked down the cause of the mouse pointer offset problem I was
having.
It seems to result from the OpenLayers map being inside an HTML<table>
element whose border attribute is set to the value '1'

Ah, how interesting. Thanks for the tip there; it may save me some grief when debugging a map in a table some time.

Have you tried using CSS to style the table's border instead of the border= attribute? My guess is that you've hit upon a bug in calculating the map div's offset, and the offset calculation may not show that same inaccuracy if you use CSS.

table.outer {
  border:3px outset #CCCCCC;
}

table.inner {
  border:1px solid black;
}

<table class="outer">
   <table class="inner">
   </table>
</table>



--
Greg Allensworth, Web GIS Developer
BS  A+  Network+  Security+  Linux+  Server+
GreenInfo Network - Information and Mapping in the Public Interest
564 Market Street, Suite 510  San Francisco CA 94104
PH: 415-979-0343 x302  FX: 415-979-0371    email: [email protected]
Web: www.GreenInfo.org     www.MapsPortal.org

Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to