Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7714] iOS: Window freezing after scrolling back to the first view.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-17T17:40:08.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-04, Release 2.0.0, Release 1.8.2
ComponentsiOS
Labelsios, module_window, qe-testadded, regression
ReporterSabil Rahim
AssigneeMax Stepanov
Created2012-02-17T15:35:54.000+0000
Updated2012-03-13T10:46:02.000+0000

Description

The window2 does not seem to be opened after the first try. Steps to Reproduce. 1. Run on Device or Simulator 2. Touch on window1 to navigate to window2 3. Navigate back to window1 4. Try touching on window one again.

Actual Result

Gets stuck on window 1

Expected Result

Should be able to navigate back and forth between windows.
 

var tabGroup = Titanium.UI.createTabGroup({});

var win1 = Titanium.UI.createWindow({  
    title:'Window 1',
    backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
    title:'Tab 1',
    window:win1
});

var label1 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 1',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win1.add(label1);

var win2 = Titanium.UI.createWindow({  
        title:'Window 2',
        backgroundColor:'red'
});

var label2 = Titanium.UI.createLabel({
    color:'#fff',
    text:'I am Window 2, if you click to go back, and try coming back again. If you are seeing this screen the second time, then its a sucess',
    font:{fontSize:20,fontFamily:'Helvetica Neue'},
    textAlign:'center',
    width:'auto'
});

win2.add(label2);
    
win1.addEventListener('click', function(e) {
    tab1.open(win2);
});

tabGroup.addTab(tab1);  
tabGroup.open();

Comments

  1. Michael Pettiford 2012-03-13

    Closing issue Tested with Ti Studio build 1.0.9.201202141208 Ti Mob SDK 2.0.0.v20120312213243 OSX Lion 10.7.3 iPhone 4S OS 5.0.1 Expected result is shown

JSON Source