Neike Taika-Tessaro
unread,Sep 10, 2010, 4:22:41 AM9/10/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javascript-image-cropper-ui
I was trying to integrate cropper into a website last night.
I was aiming for...
new Cropper.ImgWithPreview(
'thumbnail-image',
{
minWidth: thumbnailSize,
minHeight: thumbnailSize,
maxWidth: thumbnailSize,
maxHeight: thumbnailSize,
previewWrap: 'thumbnail-preview',
displayOnInit: true,
onEndCrop: thumbnailEndCrop
}
);
...with thumbnailSize being a variable I set before. I tried the
resulting cropper in [latest] FireFox/Windows7 and Chrome/Windows7,
both didn't show the cropper until I clicked on the image. I noticed
it was working fine in the demo, though, and started to try to figure
out what was different. After some trial and error, I got it worked
with:
new Cropper.ImgWithPreview(
'thumbnail-image',
{
minWidth: thumbnailSize,
minHeight: thumbnailSize,
ratioDim: { x: thumbnailSize, y: thumbnailSize },
maxWidth: thumbnailSize,
maxHeight: thumbnailSize,
previewWrap: 'thumbnail-preview',
displayOnInit: true,
onEndCrop: thumbnailEndCrop
}
);
Then it started up fine.
Is that deliberate, a quirk of the two browsers, or a bug?
Regards,
- pinkgothic