Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12776

Modal Window opening bug, while using modal transition style

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 3.0.0
    • Fix Version/s: Release 3.0.2
    • Component/s: iOS
    • Labels:
    • Environment:

      iOS Mobile.

      Description

      Description: If i close the modal window,using close button then it is working fine. But if i close it using curl effect then close event does not fire and window can not be opened second time, as it is not closed.

      code to reproduce.

      var win1 = Ti.UI.createWindow({
      	backgroundColor : "white",
      });
       
      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.addEventListener("close", function() {
      	alert("hello");
      });
       
      var b1 = Ti.UI.createButton({
      	title : 'Open',
      	width : 100,
      	height : 30
      });
      b1.addEventListener('click', function() {
      	w.open({
      		modal : true,
      		modalTransitionStyle : Titanium.UI.iPhone.MODAL_TRANSITION_STYLE_PARTIAL_CURL,
      		modalStyle : Titanium.UI.iPhone.MODAL_PRESENTATION_FULLSCREEN,
      		navBarHidden : true
      	});
      });
       
      win1.add(b1);
       
      win1.open();
      

        Attachments

          Activity

            People

            • Assignee:
              jithinv@exalture.com jithinpv
              Reporter:
              anigam Ashish Nigam
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15680
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code