[OpenLayers-Dev] Still working my OpenLayers viewer (first one
. . .)
Peter Körner
osm-lists at mazdermind.de
Wed Jun 22 04:10:25 EDT 2011
Am 21.06.2011 20:42, schrieb Bob Basques:
> Is there a method for adding a Scroll bar to the layer switcher, I'm
> getting a longish layer listing when I add in my legends, even for just
> a few layers? See here:
> /_http://pwultra5.ci.stpaul.mn.us/ol/ol.04.html_/I thought it might be
> automatic, but resizing the window doesn't produce a scrolling menu in
> the layerSwitcher (that I can tell).
>
Using CSS, as you already tried:
.layersdiv {
overflow: auto;
height: 300px;
opacity: 1 !important;
}
the opacity is needed as some browsers (eg. Chrome on Windows) renders
Scrollbars with opacity != 1 in a wired way.
Peter
More information about the Dev
mailing list