更新 infowindow-view.js

remotes/origin/master
钟进 4 years ago
parent 52aaa9f15d
commit 839afe87bd

@ -103,6 +103,9 @@ var Infowindow = View.extend({
this.$('.js-infowindow').css('width', this.model.get('width') + 'px'); this.$('.js-infowindow').css('width', this.model.get('width') + 'px');
} }
if (this.model.get('height')) {
this.$('.js-infowindow').css('height', this.model.get('height') + 'px');
}
if (this.model.get('maxHeight')) { if (this.model.get('maxHeight')) {
this._getContent().css('max-height', this.model.get('maxHeight') + 'px'); this._getContent().css('max-height', this.model.get('maxHeight') + 'px');
} }

Loading…
Cancel
Save