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

Christopher Schmidt crschmidt at metacarta.com
Fri Apr 4 07:54:32 EDT 2008


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



More information about the Users mailing list