sylvainjule / kirby-annotator

Kirby field for adding notes to images by pinning them to specific coordinates. Kirby 2 and 3.
MIT License
108 stars 8 forks source link

image not scaling to full width of mappable area #2

Closed tobystokes closed 6 years ago

tobystokes commented 6 years ago

(great work, exactly what I have been looking for!)

If your window width is much greater than the size of the map image (which is resized to 800px) then the mappable area/block is larger than the image itself.

image

I think the simple fix is to

.imageannotator-ctn-img {
  display: inline-block
}

Equally, you could make the image full width

.imageannotator-img { width: 100% } 

But I think that might be a bit large in most circumstances.

sylvainjule commented 6 years ago

Oh, indeed, I forgot to fix it after adding the resize() helper, that's done, thanks !