removed px member from OpenLayers.Popup. user must now specify a px value in the draw() method, just like with markers. updated tests

git-svn-id: http://svn.openlayers.org/trunk/openlayers@252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-22 11:45:38 +00:00
parent d2c18d4de7
commit 2410d94107
4 changed files with 28 additions and 40 deletions

View File

@@ -153,10 +153,11 @@ OpenLayers.Map.prototype = {
/**
* @param {OpenLayers.Popup} popup
* @param {OpenLayers.Pixel} px
*/
addPopup: function(popup) {
addPopup: function(popup, px) {
this.popups.push(popup);
var popupDiv = popup.draw();
var popupDiv = popup.draw(px);
if (popupDiv) {
popupDiv.style.zIndex = this.Z_INDEX_BASE['Popup'] +
this.popups.length;