| GitHub Issue | n/a |
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-04-17T23:57:01.000+0000 |
| Affected Version/s | Release 3.1.0 |
| Fix Version/s | 2013 Sprint 08 API, 2013 Sprint 08, Release 3.1.2, Release 3.2.0 |
| Components | iOS |
| Labels | KitchenSink, navbar, qe-3.1.0, qe-closed-3.1.2, qe-testadded |
| Reporter | Olga Romero |
| Assignee | Vishal Duggal |
| Created | 2013-04-05T22:35:06.000+0000 |
| Updated | 2014-06-19T12:43:05.000+0000 |
Test steps:
1. Run KS> Base UI> Window NavBar
2. Press Title Prompt button
3. Press Title Control
4. Rotate device
Actual result:
The switch is moving up (see attachments)
Expected result:
The switch should not move
Not a regression. Occurs as far back as 2.1.4 GA. Moving out of 3.1.0
Test Case
Titanium.UI.setBackgroundColor('#000'); var label = Ti.UI.createLabel({ text:'Title Control' }) var win = Ti.UI.createWindow({ title: 'NavItem Layout', modal: true, layout:'vertical', }); var b1 = Ti.UI.createButton({ title:'Toggle Prompt' }) var b2 = Ti.UI.createButton({ title:'Toggle Control' }) win.add(b1); win.add(b2); showPrompt = true; b1.addEventListener('click',function(){ win.titlePrompt = (showPrompt == true)?'Title Prompt':null; showPrompt = ! showPrompt; }) showControl = true; b2.addEventListener('click',function(){ win.titleControl = (showControl == true)?label:null; showControl = ! showControl; }) win.open();Pull pending https://github.com/appcelerator/titanium_mobile/pull/4149
Tested and verified fix with: Appcelerator Studio, build: 3.1.2.201307261628 Titanium SDK, build: 3.1.2.v20130730094858 iPhone5 iOS7 iPad4 iOS7 Kitchensink, version:3.1.1.GA If using the test case from comments above and iOS7, the background color should be changed.