Move the popup close box sizing to CSS
This commit is contained in:
@@ -872,13 +872,11 @@ OpenLayers.Popup = OpenLayers.Class({
|
||||
*/
|
||||
addCloseBox: function(callback) {
|
||||
|
||||
this.closeDiv = OpenLayers.Util.createDiv(
|
||||
this.id + "_close", null, {w: 17, h: 17}
|
||||
);
|
||||
this.closeDiv = OpenLayers.Util.createDiv(this.id + "_close");
|
||||
this.closeDiv.className = "olPopupCloseBox";
|
||||
|
||||
// use the content div's css padding to determine if we should
|
||||
// padd the close div
|
||||
// pad the close div
|
||||
var contentDivPadding = this.getContentDivPadding();
|
||||
|
||||
this.closeDiv.style.right = contentDivPadding.right + "px";
|
||||
|
||||
Reference in New Issue
Block a user