[TIMOB-2334] setting image to allow edit is broken on the ipad.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M04 |
Components | iOS |
Labels | defect, gallery, imageview, ios, ipad, photo, resize |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T03:16:58.000+0000 |
Updated | 2011-04-17T01:58:48.000+0000 |
Description
on 3.2 using 1.5 images from the photo gallery cannot be resized.
code:
Titanium.Media.openPhotoGallery({
success:function(event)
{
var cropRect = event.cropRect;
var image = event.media;
// set image view
Ti.API.debug('Our type was: '+event.mediaType);
if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO)
{
imageView.image = image;
}
else
{
}
Titanium.API.info('PHOTO GALLERY SUCCESS cropRect.x ' + cropRect.x + ' cropRect.y ' + cropRect.y + ' cropRect.height ' + cropRect.height + ' cropRect.width ' + cropRect.width);
},
cancel:function()
{
var nm_dialog = Ti.UI.createAlertDialog({
message: 'Canceled',
buttonNames: ['Ok']
});
nm_dialog.show();
},
error:function(error)
{
},
allowEditing:true,
// popoverView:popoverView,
arrowDirection:arrowDirection,
mediaTypes:[Ti.Media.MEDIA_TYPE_VIDEO,Ti.Media.MEDIA_TYPE_PHOTO],
});
HD Ticket:
http://developer.appcelerator.com/helpdesk/view/53841">http://developer.appcelerator.com/helpdesk/view/53841
Disabling arrowDirection because it was undefined with the sample code, image editing did show up. Going to verify again tomorrow.
(from [fdd98f13434697baf2281a2d79fc12fed272a342]) [#2334 state:fixed-in-qa] When coming from an editing, ignore mediaUrl, as that's the uncut image. https://github.com/appcelerator/titanium_mobile/commit/fdd98f13434697baf2281a2d79fc12fed272a342"> https://github.com/appcelerator/titanium_mobile/commit/fdd98f134346...
confirmed on 3.2 ipad and 4.2 (3g) ipad using bugtest content
Titanium SDK version: 1.5.0 (12/08/10 13:01 7b6b188)