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

Windows: Reopening a window from a tableview does not work until another window is opened

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: Release 4.1.0
    • Component/s: Windows
    • Labels:
    • Environment:

      Windows 8.1
      Ti CLI: 4.1.0-dev
      Ti SDK: 4.1.0.v20150616225249
      Lumia 928: 8.1
      Windows Phone emulator 8-1-1

    • Story Points:
      8
    • Sprint:
      2015 Sprint 13 Windows

      Description

      Description

      When using a tableview, if on click a tableview opens a window the windows will not open again until another row is clicked, for example considering the following code, if I tap on the row 'Apples' a window will open, when I close that window it will not open again until I tap another row

      var win = Ti.UI.createWindow({backgroundColor:'black'});
       
      var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ]
       
      var table = Ti.UI.createTableView({
        data: tableData
      });
       
      table.addEventListener('click', function(e){
       
          var win2 = Ti.UI.createWindow({backgroundColor:'red'});
          var lbl = Ti.UI.createLabel({
              text: 'HELLO!',
              color:'black',
              width: 'auto',
              height: 'auto'
          });
          win2.add(lbl);
       
          lbl.addEventListener('click',function(){
              win2.close();
          });
          win2.open();
       
      });
       
      win.add(table);
      win.open();
      

      Steps To Reproduce

      1. Replace the attached app.js with the above code
      2. Build to a device or emulator
      3. Tap on Apples
      4. Tap on the 'HELLO' label to close the window
      5. Tap on Apples again
      6. Tap on Potatoes
      7. Tap on the 'HELLO' label to close the window
      8. Tap on Apples

      Actual Result

      3. A window will open
      5. The window will not open
      6. A window will open
      8. A window will open

      Expected Result

      A window should open every time I tap the tableview

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                eharris Ewan Harris
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code