Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-938] table view + other elements get pushed under navbar on rotate to landscape

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:43.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:39:40.000+0000
Updated2011-04-17T01:54:43.000+0000

Description

premium ticket:

http://helpdesk.appcelerator.net/tickets/2393">http://helpdesk.appcelerator.net/tickets/2393

code:

Titanium.UI.setBackgroundColor('#000');

// create outer window var win1 = Titanium.UI.createWindow({

title:'BugTest1',
backgroundColor:'#fff'

});

// create inner window with a table view var win2 = Titanium.UI.createWindow({

title:'InnerWin',
backgroundColor:'#00f'

}); var tbl = Ti.UI.createTableView({

data: [{title:'Item1'},{title:'item2'},{title:'item3'}],
backgroundColor: '#0ff'

}); win2.add(tbl);

// create a navigation view and add the second window var nav = Ti.UI.iPhone.createNavigationGroup({

window: win2

});

// set the orientation modes win1.orientationModes = [

Titanium.UI.PORTRAIT,
Titanium.UI.LANDSCAPE_LEFT,
Titanium.UI.LANDSCAPE_RIGHT

]; win2.orientationModes = [

Titanium.UI.PORTRAIT,
Titanium.UI.LANDSCAPE_LEFT,
Titanium.UI.LANDSCAPE_RIGHT

];

// display the main window win1.add(nav);
win1.open({

transition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT

});

Comments

  1. Jeff Haynie 2011-04-15

    (from [ea2d5f7a26416b85a119ec21bf2486ccc782bedf]) Closes #938 -- Turns out it was not a case of the table view being pushed under the nav bar but the nav bar not becoming shorter. Windows weren't relaying the rotation to children and the NavGroup didn't relay the rotation to the nav controller. http://github.com/appcelerator/titanium_mobile/commit/ea2d5f7a26416b85a119ec21bf2486ccc782bedf"> http://github.com/appcelerator/titanium_mobile/commit/ea2d5f7a26416...

JSON Source