melistik / vaadin-jcrop

Vaadin wrapping for the jQuery plugin jCrop
https://vaadin.com/directory#!addon/jcrop-wrapper
MIT License
3 stars 2 forks source link

Selection not always preserved on imageUrl/resource changes #1

Open fredl11 opened 9 years ago

fredl11 commented 9 years ago

The active selection is not always preserved when setImageUrl() or setResource() is called. I can reproduce the issue with the sampler:

  1. Make a random selection
  2. Click "switchImage" or "setResource"

Result:

The information about the selection above the image however shows the correct values. Only the overlay is lost.

It seems as if the problem is related to the image loading speed. If the the image is served slowly, the selection overlay is lost.

melistik commented 9 years ago

yes you are right... i will check it out and try to fix it for the next release - but it take some time...