MODAL_TRANSITION_STYLE_PARTIAL_CURL only opens once
I am trying to use MODAL_TRANSITION_STYLE_PARTIAL_CURL to curl up my current page to show some options, this works, but only once.
After its closed by touching anywhere else on the screen, it won't re-open.
The buttons click event fires, but is just not re-opening the view.
Here is the code I have: http://pastie.org/1347398
Edit: Apparently this is a bug where it should be firing a blur and a close event but its not… looks like I need to start working on a fix for that
1 Answer
-
Accepted Answer
I think it might have to do with you presenting the view as modal… and trying to capture the click on the navBar.
when i close the window based on the click event in the new options_view it appears to work fine
var options_view = Titanium.UI.createWindow({ backgroundImage:'../images/dotted-pattern.png' }); var options_button = Titanium.UI.createButton({ title:'Options', height:40, width:220, top:170 }); options_view.addEventListener('click',function(e) { options_view.close(); }); options_button.addEventListener('click',function(e) { Ti.API.info(e.source.title); options_view.open({modal:true, modalTransitionStyle: Ti.UI.iPhone.MODAL_TRANSITION_STYLE_PARTIAL_CURL, modalStyle: Ti.UI.iPhone.MODAL_PRESENTATION_CURRENT_CONTEXT //navBarHidden:true, }); }); win1.setLeftNavButton(options_button);