Skip to content

Commit 695d2e9

Browse files
committed
Fix slider top and img vertical-align
1 parent f0d6e05 commit 695d2e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ol3panzoom.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ OL3PanZoom.prototype.createButtonEl_ = function(action) {
261261
var imgEl = document.createElement('img');
262262
imgEl.style.width = '18px';
263263
imgEl.style.height = '18px';
264+
imgEl.style['vertical-align'] = 'top';
264265

265266
switch (action) {
266267
case 'pan-east':
@@ -447,7 +448,7 @@ OL3PanZoom.prototype.adjustZoomSlider_ = function() {
447448
zoomSliderEl.style.height = height;
448449
zoomSliderEl.style.left = '13px';
449450
zoomSliderEl.style.padding = '0';
450-
zoomSliderEl.style.top = '84px';
451+
zoomSliderEl.style.top = '81px';
451452
zoomSliderEl.style.width = '18px';
452453

453454
// slider

0 commit comments

Comments
 (0)