Add Height/Width to control div via Map.js -- this is good for when elements inside the div are absolutely positioned, and therefore have no width.
The LayerSwitcher now sets right, and *unsets* left. This is important because otherwise browsers get confused. git-svn-id: http://svn.openlayers.org/trunk/openlayers@93 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -77,6 +77,8 @@ OpenLayers.Map.prototype = {
|
||||
// the controlDiv is the div that all the controls sit on
|
||||
this.controlDiv = OpenLayers.Util.createDiv(
|
||||
div.id + "_OpenLayers_Control" );
|
||||
this.controlDiv.style.width="100%";
|
||||
this.controlDiv.style.height="100%";
|
||||
this.controlDiv.style.zIndex = this.Z_INDEX_BASE["Control"];
|
||||
this.viewPortDiv.appendChild(this.controlDiv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user