[OpenLayers-Users] #879: Zoom Box Offset on Specific Map

Darren Karstens darrenkarstens at googlemail.com
Tue Jul 28 04:12:19 EDT 2009


I have the same problem where I have a left-margin:15px and all of my mouse
clicks for my WFS requests seem to be off by the same amount. Unfortunately
we cannot remove the margin so I was wondering if anyone knows a workaround
for this?


Christopher Schmidt-2 wrote:
> 
> On Fri, Apr 04, 2008 at 01:40:35PM +0200, John Pulles wrote:
>> Hi list,
>> 
>> > The specific behavior here was unusual in that it:
>> > * Happened every time the page was loaded. (no 'reload and it goes
>> >   away')
>> > * Was offset by a large amount (~200px, iirc)
>> >
>> > If anyone else is experiencing this problem -- that is, a specific page
>> > generates incorrect zoombox extents, more than 50px from the mouse
>> > position every time the map is loaded, could they comment to the bug?
>> 
>> A similar thing can be seen when using Internet Explorer to look at 
>> http://aardbodem.nl/node/3: when dragging a zoom box with the mouse, it 
>> will appear around 200 pixels to the left of the cursor.
>> 
>> I expect the reason lies in the theming of the site, but I don't know
>> where to 
>> correct it.
> 
> My guess is that it's related to:
> 
> style.css (line 401)
> body.sidebar-left #center {
> margin-left:-210px;
> }
> 
> or possibly the corresponding margin-left of 210px on '#squeeze'.
> 
> Since you say about 200px, and I know that IE has... 'issues' with
> margin calculatino. Is it just IE6, or does IE7 suffer similarly?
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/-879%3A-Zoom-Box-Offset-on-Specific-Map-tp1828198p3340395.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list