Remove getSize

This commit is contained in:
nicholas
2016-03-25 17:42:42 +13:00
committed by Nicholas L
parent 609c891524
commit 96a14e0515
2 changed files with 5 additions and 3 deletions

View File

@@ -185,7 +185,9 @@ ol.control.ZoomSlider.prototype.setMap = function(map) {
*/
ol.control.ZoomSlider.prototype.initSlider_ = function() {
var container = this.element;
var containerSize = goog.style.getSize(container);
var containerSize = {
width: container.offsetWidth, height: container.offsetHeight
};
var thumb = container.firstElementChild;
var thumbMargins = goog.style.getMarginBox(thumb);