Changeset 6727
- Timestamp:
- 03/31/08 01:55:12 (5 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Control/MousePosition.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Control/OverviewMap.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Control/Permalink.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Control/Scale.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Control/ScaleLine.js (modified) (1 diff)
- trunk/openlayers/theme/default/style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control.js
r6718 r6727 80 80 81 81 /** 82 * Property: allowSelection 83 * {Boolean} By deafault, controls do not allow selection, because 84 * it may interfere with map dragging. If this is true, OpenLayers 85 * will not prevent selection of the control. 86 * Default is false. 87 */ 88 allowSelection: false, 89 90 /** 82 91 * Property: displayClass 83 92 * {string} This property is used for CSS related to the drawing of the … … 241 250 this.div = OpenLayers.Util.createDiv(this.id); 242 251 this.div.className = this.displayClass; 252 if (!this.allowSelection) { 253 this.div.className += " olControlNoSelect"; 254 this.div.setAttribute("unselectable", "on", 0); 255 this.div.onselectstart = function() { return(false); }; 256 } 243 257 if (this.title != "") { 244 258 this.div.title = this.title; trunk/openlayers/lib/OpenLayers/Control/MousePosition.js
r5906 r6727 92 92 this.div.left = ""; 93 93 this.div.top = ""; 94 this.div.className = this.displayClass;95 94 this.element = this.div; 96 95 } trunk/openlayers/lib/OpenLayers/Control/OverviewMap.js
r6330 r6727 205 205 // map viewport. 206 206 if(!this.outsideViewport) { 207 this.div.className =this.displayClass + 'Container';207 this.div.className += " " + this.displayClass + 'Container'; 208 208 var imgLocation = OpenLayers.Util.getImagesLocation(); 209 209 // maximize button div trunk/openlayers/lib/OpenLayers/Control/Permalink.js
r6313 r6727 110 110 111 111 if (!this.element) { 112 this.div.className = this.displayClass;113 112 this.element = document.createElement("a"); 114 113 this.element.innerHTML = OpenLayers.i18n("permalink"); trunk/openlayers/lib/OpenLayers/Control/Scale.js
r6313 r6727 44 44 if (!this.element) { 45 45 this.element = document.createElement("div"); 46 this.div.className = this.displayClass;47 46 this.div.appendChild(this.element); 48 47 } trunk/openlayers/lib/OpenLayers/Control/ScaleLine.js
r6557 r6727 82 82 OpenLayers.Control.prototype.draw.apply(this, arguments); 83 83 if (!this.eTop) { 84 this.div.className = this.displayClass;85 84 this.div.style.display = "block"; 86 85 this.div.style.position = "absolute"; trunk/openlayers/theme/default/style.css
r6718 r6727 241 241 cursor: pointer; 242 242 } 243 244 .olControlNoSelect { 245 -moz-user-select: none; 246 }
