vokseverk / Vokseverk.ImageHotspot

A property editor for Umbraco to place a hotspot on an image (e.g. a place on a map).
https://our.umbraco.com/packages/backoffice-extensions/image-hotspot/
12 stars 5 forks source link

Bugfix: Fix problem with disappearing hotspot #19

Closed greystate closed 7 months ago

greystate commented 7 months ago

This adds a fix for #18 by making sure to round the stored values.

This shouldn't be necessary (the left and top values are pixel positions on the image) but in situations were the displayed image is zoomed or scaled in any way (e.g. if the screen has a 2x resolution but is set to a scaled value) the values returned are floats, which made the PropertyEditorValueConverter bail.