更新 infowindow-view.js

This commit is contained in:
钟进 2020-06-13 10:40:05 +00:00
parent 52aaa9f15d
commit 839afe87bd

View File

@ -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');
} }