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);
|
||||
|
||||
if (this.direction_ == ol.control.ZoomSlider.direction.HORIZONTAL) {
|
||||
var left = this.limits_.left + this.limits_.width * position;
|
||||
goog.style.setPosition(thumb, left);
|
||||
thumb.style.left = this.limits_.left + this.limits_.width * position + 'px';
|
||||
} else {
|
||||
var top = this.limits_.top + this.limits_.height * position;
|
||||
goog.style.setPosition(thumb, this.limits_.left, top);
|
||||
thumb.style.left = this.limits_.left + 'px';
|
||||
thumb.style.top = this.limits_.top + this.limits_.height * position + 'px';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user