Merge pull request #1451 from twpayne/get-content-box-size
Use goog.style.getContentBoxSize to calculate map size
This commit is contained in:
@@ -1212,7 +1212,7 @@ ol.Map.prototype.updateSize = function() {
|
||||
if (goog.isNull(targetElement)) {
|
||||
this.setSize(undefined);
|
||||
} else {
|
||||
var size = goog.style.getSize(targetElement);
|
||||
var size = goog.style.getContentBoxSize(targetElement);
|
||||
this.setSize([size.width, size.height]);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user