Search code examples
javascriptjcrop

JCrop when use set select option the plugin broken


When i use set select option in JCop , i can't change the selection area , the plugin broken, because i couldn't retrieve ui property to get the handler for image.

Here's the code that i work on :

jsfiddle.net/k_shadow/ng5ayq93/2/


Solution

  • You should handle it by selecting image by their Id ,you should do it by replacing this line

    var $this = this.ui.holder; by this one : $('#original') and get the height and width for the image , this will solve your issue.