Using maxSize not working in Jcrop
Hi guys,
I hope you can help me out with a problem with JCrop. In my scenario, images are loading dynamically and each have different dimensional size. One thing common in each image is that the width of the image will not less 1440px and height is not less than 400px. I want to give user an option to crop the images but the i want that the crop selection box size must be same and it will be => height:400px & width:1440px.. I have used the following code, but the maxSize is not working.
$(function(){
$('#cropbox').Jcrop({
trueSize: [<?=$imgs->width?>,<?=$imgs->height?>],
minSize: [1440, 400],
maxSize:[1440,400],
allowResize: false,
onSelect: function(c){
$("#x").val(c.x);
$("#y").val(c.y);
$("#w").val(c.w);
$("#h").val(c.h);
},
onChange: function(c){
$("#x").val(c.x);
$("#y").val(c.y);
$("#w").val(c.w);
$("#h").val(c.h);
}
});
});