[TIMOB-2717] reshowing popover causes child TableViews to blank out.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-06-09T10:40:39.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Sprint 2011-23 |
| Components | iOS |
| Labels | n/a |
| Reporter | dbachelder |
| Assignee | Reggie Seagraves |
| Created | 2011-04-15T03:27:43.000+0000 |
| Updated | 2011-06-27T17:41:45.000+0000 |
Description
The following code shows the issue.. click the button twice and you should see the problem on the iPad simulator. Ti SDK 1.5.1
var win = Ti.UI.createWindow({title:'test'});
win.open();
var b = Ti.UI.createButton({title:'button', width:100, height:100});
win.add(b);
var pop = Ti.UI.iPad.createPopover({width:300, height:200,arrowDirection:Ti.UI.iPad.POPOVER_ARROW_DIRECTION_LEFT});
pop.add(Ti.UI.createTableView({data:[{title:'a'}, {title:'b'}, {title:'c'}]}));
b.addEventListener('click', function() {
pop.show({view:b,animated:true});
});
This is still happening as of 1.7 (Jun 6 2011 15:48 r64155ee4)
Sample Code:
var win = Ti.UI.createWindow({ backgroundColor:'#ccc' }); var btn = Ti.UI.createButton({ title:'Click' }); win.leftNavButton = btn; var tableData = [ {title:'01'},{title:'02'},{title:'03'},{title:'04'},{title:'05'}, {title:'06'},{title:'07'},{title:'08'},{title:'09'},{title:'10'}, {title:'11'},{title:'12'},{title:'13'},{title:'14'},{title:'15'}, {title:'16'},{title:'17'},{title:'18'},{title:'19'},{title:'20'}, {title:'21'},{title:'22'},{title:'23'},{title:'24'},{title:'25'}, {title:'26'},{title:'27'},{title:'28'},{title:'29'},{title:'30'}, {title:'31'},{title:'32'},{title:'33'},{title:'34'},{title:'35'}, {title:'36'},{title:'37'},{title:'38'},{title:'39'},{title:'40'}, {title:'41'},{title:'42'},{title:'43'},{title:'44'},{title:'45'}, {title:'46'},{title:'47'},{title:'48'},{title:'49'},{title:'50'} ]; var table = Ti.UI.createTableView({ data:tableData }); var popover = Ti.UI.iPad.createPopover({ width:300, height:400, title:'Table View', barColor:'#111' }); popover.add(table); btn.addEventListener('click', function(){ popover.show( { view:btn } ); }); win.open( { modal:true } );Helpdesk Ticket
http://support.appcelerator.com/tickets/APP-231259/homepageFixed by checkins in linked Jira issues.
Fixed with build r57d536ed in simulator, iPad 3.2.2 and iPad 2 4.3.3.