The crop marquee isnt visible when you "Add another item" after your first, previous, uploaded image. The preview shows a preview that is aligned 0,0 top left.
The crop marquee isnt visible when you "Add another item" after your first, previous, uploaded image. The preview shows a preview that is aligned 0,0 top left.
Comments
Comment #1
adeb commentedI have a possible fix:
Inside imagefield_crop.js, replace this:
// wait till 'fadeIn' effect ends (defined in filefield_widget.inc)
setTimeout(attachJcrop, 1000, context);
With:
// wait till 'fadeIn' effect ends (defined in filefield_widget.inc)
var myFunction = function() {attachJcrop(context);}
setTimeout(myFunction, 1000);
Comment #2
yhager commentedCan you please explain how this fixes things?
Comment #3
adeb commentedIE doesn't respect the extra parameter to setTimeout, the best way to solve this is by using closures.
It's explained in detail here: http://www.dmuth.org/node/1252.
Comment #4
yhager commentedcommitted. Thanks.