Changeset 2135
- Timestamp:
- 01/10/07 16:56:07 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control/OverviewMap.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/OverviewMap.js
r2089 r2135 148 148 // Optionally add min/max buttons if the control will go in the 149 149 // map viewport. 150 if(!this.div.parentNode || 151 (this.div.parentNode.className == 'olMapViewport')) { 150 if(!this.outsideViewport) { 152 151 this.div.className = 'olControlOverviewMapContainer'; 153 152 var imgLocation = OpenLayers.Util.getImagesLocation(); trunk/openlayers/lib/OpenLayers/Map.js
r2117 r2135 481 481 */ 482 482 addControlToMap: function (control, px) { 483 // If a control doesn't have a div at this point, it belongs in the 484 // viewport. 485 control.outsideViewport = (control.div != null); 483 486 control.setMap(this); 484 487 var div = control.draw(px); 485 488 if (div) { 486 // Only elements without parents should be appended to the viewport. 487 // In IE, even elements without parents are given a parent node 488 // of type 11 (DOCUMENT_FRAGMENT_NODE). 489 if(!div.parentNode || (div.parentNode.nodeType == 11)) { 489 if(!control.outsideViewport) { 490 490 div.style.zIndex = this.Z_INDEX_BASE['Control'] + 491 491 this.controls.length;
