fix my previous mistake with offsetWidth

This commit is contained in:
Marcin Sikon 2011-07-28 23:09:58 +02:00
parent a9dc7e0dd3
commit 4e3667d7fa

View File

@ -114,10 +114,10 @@ L.Popup = L.Class.extend({
var width = this._container.offsetWidth; var width = this._container.offsetWidth;
this._containerWidth = (width > this.options.maxWidth ? this.options.maxWidth : (width < this.options.minWidth ? this.options.minWidth : width ) ); this._container.style.width = (width > this.options.maxWidth ? this.options.maxWidth : (width < this.options.minWidth ? this.options.minWidth : width ) ) + 'px';
this._container.style.width = this._containerWidth + 'px';
this._container.style.whiteSpace = ''; this._container.style.whiteSpace = '';
this._containerWidth = this._container.offsetWidth;
}, },
_updatePosition: function() { _updatePosition: function() {