Merge pull request #4255 from ahocevar/zoomslider-width

Fix zoom slider width for retina displays
This commit is contained in:
Andreas Hocevar committed 2015-10-12 20:19:29 +02:00
commit e111e30f33
3 files changed
+7 -16

No files matched your search

+4 -2
View File
@@ -79,8 +79,10 @@ ol.control.ZoomSlider = function(opt_options) {
this.duration_ = options.duration ? options.duration : 200;
var className = options.className ? options.className : 'ol-zoomslider';
var thumbElement = goog.dom.createDom(goog.dom.TagName.DIV,
[className + '-thumb', ol.css.CLASS_UNSELECTABLE]);
var thumbElement = goog.dom.createDom(goog.dom.TagName.BUTTON, {
'type': 'button',
'class': className + '-thumb ' + ol.css.CLASS_UNSELECTABLE
});
var containerElement = goog.dom.createDom(goog.dom.TagName.DIV,
[className, ol.css.CLASS_UNSELECTABLE, ol.css.CLASS_CONTROL],
thumbElement);