[OpenLayers-Users] PanZoomBar slider position
Warren Vick
wvick at europa-tech.com
Sun Mar 8 04:57:21 EDT 2009
Hi Christoph,
Many thanks for looking into this and posting a workaround.
Regards,
Warren
-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Christoph Böhme
Sent: 07 March 2009 13:01
To: users at openlayers.org
Subject: Re: [OpenLayers-Users] PanZoomBar slider position
Hi!
I think I noticed the same displacement. The two screenshots show a
correctly and an incorrectly positioned slider:
http://www.b3e.net/slider_wrong.png
http://www.b3e.net/slider_correct.png
I observed this efffect on Firefox, Opera and Internet Explorer on
Linux and Windows. When I looked into the problem with Firebug I found
out that the slider image has an top offset of 6px. However, I have
absolutely no idea, where this comes from. Margin, padding, and border
are all zero; only the offset is 6px. It even appears on very simple
maps (e.g. http://www.b3e.net/konavi/).
The only way to remove the displacement that I found was adding the
following css to the page:
img[src="http://openlayers.org/api/img/slider.png"]
{
top: -6px;
}
Hope this helps!
Christoph
"Warren Vick" <wvick at europa-tech.com> schrieb:
> Has anyone else noticed that the slider on a PanZoomBar control does
> not position very well? It seems to go tightly against the "-" stop
> at the bottom but has a spare notch at the top before the "+" stop. I
> thought it may be browser/machine specific but it seems to be the
> case on a variety of browsers on PCs and Macs.
>
> Regards,
> Warren
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list