cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becky Gibson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2411) navigator.camera dismiss photo album popover on orientation change
Date Fri, 15 Feb 2013 14:27:13 GMT

    [ https://issues.apache.org/jira/browse/CB-2411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13579208#comment-13579208
] 

Becky Gibson commented on CB-2411:
----------------------------------

Max, you are welcome to take over this issue.  Right now the code only assumes one picker/popover
is open at a time.  If we are going to provide a callback to modify the popover we should
make sure there is only one open on the screen from getPicture() at any one time.  Currently
the code just creates a new CDVCameraPicker for each call to getPicture and assigns that to
self. It doesn't close any open picker.   I guess getPicture() should close any open CameraPicker
(and associated popover) each time it is called to avoid more than one present on the screen.
 I can't see any reason for more than one open at a time, can anyone else?
                
> navigator.camera dismiss photo album popover on orientation change
> ------------------------------------------------------------------
>
>                 Key: CB-2411
>                 URL: https://issues.apache.org/jira/browse/CB-2411
>             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 navigator.camera.getPicture
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 navigator.camera.getPicture
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: http://www.atlassian.com/software/jira

Mime
View raw message