cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becky Gibson (JIRA)" <>
Subject [jira] [Commented] (CB-2411) dismiss photo album popover on orientation change
Date Mon, 11 Feb 2013 20:13:13 GMT


Becky Gibson commented on CB-2411:

We can add an api on Camera to dismiss the popover programmatically. The current code only
assumes one popover is displayed at a time and we access it and the callbackId via self.pickerController.popoverController.
 I can see some timing issues if the user dismisses the popover at the same time as the api.
  I know we don't like to extend/hack the Camera api but this seems to be a requirement in
order for apps to make it through the Apple approval process.   The other options are to provide
an api to allow the dev to resize and move the popover or to extend the popover options to
be an array in order to provide all of the necessary orientation sizing and placement info
when the api is called. 

> dismiss photo album popover on orientation change
> ------------------------------------------------------------------
>                 Key: CB-2411
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.3.0
>         Environment: Affect iPad only.
>            Reporter: Scott Kerber
>            Assignee: Becky Gibson
>            Priority: Blocker
>              Labels: features
> On the iPad we are displaying the photo album popover using the
with the following sourceType specified:
> Camera.PictureSourceType.SAVEDPHOTOALBUM
> we are also positioning the popover by specifying the popoverOptions (Cordova 2.3). This
all works fine.
> When the user changes the orientation of the iPad we need to re-position the photo album
popover appropriately so that it continues to point the element (a button) that displayed
the popover. This is a Apple iOS UI requirement and if not done Apple will reject the app.

> There is no way to either re-position the popover or dismiss it so that we can call
again to re-display the photo album popover in the correct location. 
> Because I cannot hide or cancel the existing popover we are ending up with multiple popovers
being displayed as you rotate the iPad to change it's orientation.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message