This is basically the same issue as #90 in markerjs2.
In my project I need to fit my target image into the remaining available space on the page. What I'm finding is that markerjs-live seems to have difficulty placing the overlay properly because this layout requires the image to be absolutely positioned inside a relatively positioned div.
I've put together a sample html file that demonstrates the behavior:
This is basically the same issue as #90 in markerjs2.
In my project I need to fit my target image into the remaining available space on the page. What I'm finding is that markerjs-live seems to have difficulty placing the overlay properly because this layout requires the image to be absolutely positioned inside a relatively positioned div.
I've put together a sample html file that demonstrates the behavior:
I was able to correct the positioning problem in my app by sub classing MarkerView and overriding the positionUI and showUI methods as follows:
I'm not sure how well this change works in other layouts or if it's the best solution but it seems to work for my application.