Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.98k stars 994 forks source link

Misaligned toolbar icons #771

Closed partisaani closed 6 years ago

partisaani commented 7 years ago

How to reproduce

What behaviour I'm expecting and which behaviour I'm seeing

image

Icons on the draw toolbar are misaligned, they should be centered in their boxes

Minimal example reproducing the issue

Using jsfiddle

germanjoey commented 7 years ago

I remember having this problem with an old version of leaflet & leaflet.draw, I wish I could remember what I did to fix it...

vutrungduc7593 commented 7 years ago

I fix it by replacing images in node_modules/leaflet-draw/dist/images folder by new images in here https://github.com/Leaflet/Leaflet.draw/tree/master/src/images

ChaosBee commented 7 years ago

The same happened to me

GetHugWuSheng commented 7 years ago

I'm using Leaflet version I'm using: 1.2.0 Leaflet Draw version I'm using: 0.4.11 Browser (with version) I'm using: Chrome in Ubuntu

have the same problem

nzifnab commented 7 years ago

Hmm, @vutrungduc7593 's fix worked for me... but that means that the version of the images in github's "Releases" => dist/images/* are incorrect.

bart commented 6 years ago

On my machine it's working on version 0.4.13. The only thing I needed to do is refreshing the spreadsheet image because it was cached on my local server.

brunob commented 6 years ago

As i said in #814 a new release is needed to fix the bug.