Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1081] iOS: Ti.UI.iPhone.MODAL_TRANSITION_STYLE_PARTIAL_CURL not triggering close on exit.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-22T22:13:43.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterSj101
AssigneeIngo Muschenetz
Created2011-04-15T02:43:30.000+0000
Updated2017-06-22T22:13:43.000+0000

Description

I'm opening a modal window via Ti.UI.iPhone.MODAL_TRANSITION_STYLE_PARTIAL_CURL. Really cool effect but when the user clicks on the curled up window, the modal window closes without firing anything. Is there a way to display this click or atleast fire "close" or "blur" when the user clicks out? It's really frustrating because i would like the user to not able to exit out without going thru the selection on the screen.

Comments

  1. Sj101 2011-04-15

    By clicking out, I meant clicking on the old window that is curled up.

  2. Jeff Haynie 2011-04-15

    we should be getting both blur and close in this case. marking as bug

  3. Stephen Tramer 2012-07-25

    Test code:
       var win = Ti.UI.createWindow();
       win.backgroundColor = 'black';
       
       
       var picker = Ti.UI.createPicker();
       
       var column1 = Ti.UI.createPickerColumn();
       column1.addRow(Ti.UI.createPickerRow({title:'Cover Vertical',style:Ti.UI.iPhone.MODAL_TRANSITION_STYLE_COVER_VERTICAL,fontSize:12}));
       column1.addRow(Ti.UI.createPickerRow({title:'Flip Horizontal',style:Ti.UI.iPhone.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL,fontSize:12}));
       column1.addRow(Ti.UI.createPickerRow({title:'Cross Dissolve',style:Ti.UI.iPhone.MODAL_TRANSITION_STYLE_CROSS_DISSOLVE,fontSize:12}));
       column1.addRow(Ti.UI.createPickerRow({title:'Partial Curl',style:Ti.UI.iPhone.MODAL_TRANSITION_STYLE_PARTIAL_CURL,fontSize:12}));
       
       var column2 = Ti.UI.createPickerColumn();
       column2.addRow(Ti.UI.createPickerRow({title:'Fullscreen',presentation:Ti.UI.iPhone.MODAL_PRESENTATION_FULLSCREEN,fontSize:12}));
       column2.addRow(Ti.UI.createPickerRow({title:'Page Sheet',presentation:Ti.UI.iPhone.MODAL_PRESENTATION_PAGESHEET,fontSize:12}));
       column2.addRow(Ti.UI.createPickerRow({title:'Form Sheet',presentation:Ti.UI.iPhone.MODAL_PRESENTATION_FORMSHEET,fontSize:12}));
       column2.addRow(Ti.UI.createPickerRow({title:'Current Ctx',presentation:Ti.UI.iPhone.MODAL_PRESENTATION_CURRENT_CONTEXT,fontSize:12}));
       
       picker.add([column1,column2]);
       
       // turn on the selection indicator (off by default)
       picker.selectionIndicator = true;
       
       win.add(picker);
       
       var button = Ti.UI.createButton({
       	width:130,
       	top:20,
       	title:'Show Modal',
       	height:30
       });
       
       win.add(button);
       
       button.addEventListener('click',function()
       {
       	var style = picker.getSelectedRow(0).style;
       	var presentation = picker.getSelectedRow(1).presentation;
       	var w = Ti.UI.createWindow({
       		backgroundColor:'purple'
       	});
       	var b = Ti.UI.createButton({
       		title:'Close',
       		width:100,
       		height:30
       	});
       	b.addEventListener('click',function()
       	{
       		w.close();
       	});
       	w.add(b);
       	w.open({modal:true,modalTransitionStyle:style,modalStyle:presentation,navBarHidden:true});
       	w.addEventListener('close', function(e) {
       		Ti.API.info('Got close event');
       	});
       });
       win.open();
       
  4. Junaid Younus 2012-08-13

    Tested on the iOS simulator using TiSDK 2.2.0v20120810194112, issue still exists.
  5. Lee Morris 2017-06-22

    I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source