Replace tabs with spaces.
This commit is contained in:
@@ -513,10 +513,9 @@ OpenLayers.Popup = OpenLayers.Class({
|
||||
this.contentDiv.innerHTML +
|
||||
"</div>";
|
||||
|
||||
var containerElement = (this.map) ? this.map.div
|
||||
: document.body;
|
||||
var containerElement = (this.map) ? this.map.div : document.body;
|
||||
var realSize = OpenLayers.Util.getRenderedDimensions(
|
||||
preparedHTML, null, {
|
||||
preparedHTML, null, {
|
||||
displayClass: this.displayClass,
|
||||
containerElement: containerElement
|
||||
}
|
||||
@@ -839,12 +838,12 @@ OpenLayers.Popup = OpenLayers.Class({
|
||||
var contentDivPadding = this._contentDivPadding;
|
||||
if (!contentDivPadding) {
|
||||
|
||||
if (this.div.parentNode == null) {
|
||||
//make the div invisible and add it to the page
|
||||
this.div.style.display = "none";
|
||||
document.body.appendChild(this.div);
|
||||
}
|
||||
|
||||
if (this.div.parentNode == null) {
|
||||
//make the div invisible and add it to the page
|
||||
this.div.style.display = "none";
|
||||
document.body.appendChild(this.div);
|
||||
}
|
||||
|
||||
//read the padding settings from css, put them in an OL.Bounds
|
||||
contentDivPadding = new OpenLayers.Bounds(
|
||||
OpenLayers.Element.getStyle(this.contentDiv, "padding-left"),
|
||||
@@ -857,9 +856,9 @@ OpenLayers.Popup = OpenLayers.Class({
|
||||
this._contentDivPadding = contentDivPadding;
|
||||
|
||||
if (this.div.parentNode == document.body) {
|
||||
//remove the div from the page and make it visible again
|
||||
document.body.removeChild(this.div);
|
||||
this.div.style.display = "";
|
||||
//remove the div from the page and make it visible again
|
||||
document.body.removeChild(this.div);
|
||||
this.div.style.display = "";
|
||||
}
|
||||
}
|
||||
return contentDivPadding;
|
||||
|
||||
Reference in New Issue
Block a user