[OpenLayers-Users] PanZoomBar slider position
Christoph Böhme
christoph at b3e.net
Sat Mar 7 08:01:28 EST 2009
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
More information about the Users
mailing list