Media.show positioning

In my app, I am able to bring up the media.show for the photo library, which displays ‘photos - camera roll’ in a small scroll-type box. But it defaults to the upper left corner of my display… and is smaller then I would like it.

My question is, how can I resize it? and/or re-position it to center of screen? I particularly would like to re-size it, as I think it is to small.

I may have missed something, but i see nothing int he documentation about positioning or re-sizing this.

Thanks [import]uid: 148857 topic_id: 34464 reply_id: 334464[/import]

You can set the “origin” and “permittedArrowDirections” of this popup dialog, but only for iPad. Have a look at the following API documentation for more details…
http://docs.coronalabs.com/api/library/media/show.html
[import]uid: 32256 topic_id: 34464 reply_id: 137124[/import]

Thanks Joshua!

I apologize, I missed the ‘origin’ option originally, but that does not allow me to center the popup dialog. It seems to offsets to the left or right of the contentBounds I provide it. Not sure what I missed there.

The bigger need is to be able to ‘ENLARGE’ that popup dialog so it fills at least half the screen… I take it there is no hidden fields such as width & height for this popup dialog?

I apologize if I am missing something obvious, I just don’t see how to do this, so I suspect it is not possible. If not possible, do you have suggestion, on how I can display the user’s photo library in some larger dialog.

Thanks [import]uid: 148857 topic_id: 34464 reply_id: 137147[/import]

You can’t resize the popup. You can only position it over another object’s content bounds, which is how Apple wants developers to display it. If you want your app to pass Apple’s app review process on iPad, I suggest that you best do it their way.

Also, Apple does not provide documentation on how to remove the popup’s arrow. Setting the arrow direction to zero in Corona will remove the arrow, but that is an undocumented thing and your app risks getting rejected by Apple. They really don’t want developers to display this popup like a modal dialog on iPad. [import]uid: 32256 topic_id: 34464 reply_id: 137169[/import]

Joshua,

Thanks. Good to know.

[RESOLVED] [import]uid: 148857 topic_id: 34464 reply_id: 137177[/import]

You can set the “origin” and “permittedArrowDirections” of this popup dialog, but only for iPad. Have a look at the following API documentation for more details…
http://docs.coronalabs.com/api/library/media/show.html
[import]uid: 32256 topic_id: 34464 reply_id: 137124[/import]

Thanks Joshua!

I apologize, I missed the ‘origin’ option originally, but that does not allow me to center the popup dialog. It seems to offsets to the left or right of the contentBounds I provide it. Not sure what I missed there.

The bigger need is to be able to ‘ENLARGE’ that popup dialog so it fills at least half the screen… I take it there is no hidden fields such as width & height for this popup dialog?

I apologize if I am missing something obvious, I just don’t see how to do this, so I suspect it is not possible. If not possible, do you have suggestion, on how I can display the user’s photo library in some larger dialog.

Thanks [import]uid: 148857 topic_id: 34464 reply_id: 137147[/import]

You can’t resize the popup. You can only position it over another object’s content bounds, which is how Apple wants developers to display it. If you want your app to pass Apple’s app review process on iPad, I suggest that you best do it their way.

Also, Apple does not provide documentation on how to remove the popup’s arrow. Setting the arrow direction to zero in Corona will remove the arrow, but that is an undocumented thing and your app risks getting rejected by Apple. They really don’t want developers to display this popup like a modal dialog on iPad. [import]uid: 32256 topic_id: 34464 reply_id: 137169[/import]

Joshua,

Thanks. Good to know.

[RESOLVED] [import]uid: 148857 topic_id: 34464 reply_id: 137177[/import]