Patch from #674, approved by SDE, plus an example.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-06-07 19:19:06 +00:00
parent 1c833a9b13
commit 39c3d11043
3 changed files with 63 additions and 2 deletions

View File

@@ -99,8 +99,10 @@ OpenLayers.Control.LayerSwitcher.prototype =
this.loadContents();
// set mode to minimize
this.minimizeControl();
if(!this.outsideViewport) {
this.minimizeControl();
}
// populate div with current info
this.redraw();