Merge pull request #4905 from fredj/rm_goog.style.setPosition
Remove use of goog.style.setPosition
This commit is contained in:
@@ -325,11 +325,10 @@ ol.control.ZoomSlider.prototype.setThumbPosition_ = function(res) {
|
|||||||
var thumb = goog.dom.getFirstElementChild(this.element);
|
var thumb = goog.dom.getFirstElementChild(this.element);
|
||||||
|
|
||||||
if (this.direction_ == ol.control.ZoomSlider.direction.HORIZONTAL) {
|
if (this.direction_ == ol.control.ZoomSlider.direction.HORIZONTAL) {
|
||||||
var left = this.limits_.left + this.limits_.width * position;
|
thumb.style.left = this.limits_.left + this.limits_.width * position + 'px';
|
||||||
goog.style.setPosition(thumb, left);
|
|
||||||
} else {
|
} else {
|
||||||
var top = this.limits_.top + this.limits_.height * position;
|
thumb.style.left = this.limits_.left + 'px';
|
||||||
goog.style.setPosition(thumb, this.limits_.left, top);
|
thumb.style.top = this.limits_.top + this.limits_.height * position + 'px';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user