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

IOS: iPad Popover can't be associated to a TableViewRow

    Details

      Description

      Trying to display a popover from a tableViewRow fails with the following message in the console
      "Unable to display popover; view is not attached to the current window"

      TEST CASE:

      var win = Ti.UI.createWindow();
       
      var section = Ti.UI.createTableViewSection();
       
      for (var i=1; i < 5; i++) {
      	section.add(Ti.UI.createTableViewRow({
      		title:'Row '+i
      	}));
      }
       
      var table = Ti.UI.createTableView({
       
        data:[section]
      });
       
      table.addEventListener('click', function(e){
      	
      	Ti.API.info('You clicked row '+e.index);
      	Ti.API.info('source '+e.source);
      	
      	Ti.API.info(JSON.stringify(e.row));
      	
      	
      	var popover = Ti.UI.iPad.createPopover({
         	 	width: 250,
          	height: 100,
          	title: 'a POpover',
          
      	});
      	
      	
      	//popover.show({view:e.source});
      	popover.show({view:e.row});
      	
      });
       
       
      win.add(table);
       
       
      var splitwin = Ti.UI.iPad.createSplitWindow({
          detailView: Ti.UI.createWindow({backgroundColor:'red'}),
          masterView: win,
          
          orientationModes :[Ti.UI.LANDSCAPE_LEFT],
      });
       
       
      splitwin.open();
      
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              vince Vincent
              Reviewer:
              Sabil Rahim
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration