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
_______________________________________________
Dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-dev