}
this.content=this.contentCell.appendChild(document.createElement('div'));
this.content.className='RicoPopupContent';
+ this.content.style.position='relative';
while (this.container.firstChild) {
this.content.appendChild(this.container.firstChild);
var msgHeight=this.container.offsetHeight;
var divwi=this.container.parentNode.offsetWidth;
var divht=this.container.parentNode.offsetHeight;
- this.move(parseInt((divwi-msgWidth)/2,10), parseInt((divht-msgHeight)/2,10));
+ this.move(parseInt(Math.max((divwi-msgWidth)/2,0),10), parseInt(Math.max((divht-msgHeight)/2,0),10));
},
visible: function() {