GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-26T21:26:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 20, 2013 Sprint 20 API, Release 3.1.4, Release 3.2.0 |
Components | iOS |
Labels | focus, module_SplitWindow, module_window, qe-closed-3.1.4, qe-testadded, regression |
Reporter | Slim McKinsley |
Assignee | Vishal Duggal |
Created | 2013-09-19T14:55:18.000+0000 |
Updated | 2013-09-27T21:27:53.000+0000 |
This is a regression introduced in Ti SDK 3.1.3.GA (works fine in previous versions including 3.1.3.v20130910153050). SplitWindow on iPad does not fire focus events.
Steps to reproduce:
1. Run the attached app.js in iPad Simulator with Ti SDK 3.1.3.GA.
2. Rotate to landscape orientation.
3. After the initial alert, tab Tab 1 or Tab 2 and notice the focus events do not fire as expected.
Follow the same steps using Ti SDK 3.1.3.v20130910153050 and notice the focus events DO fire in step 4.
Test Code is invalid but the bug is valid. SplitWindow treats its master and detail windows as view proxies instead of window proxies. Hence no focus and blur events are fired. Need to fix this.
Verified occurs with 3.1.3.GA in iPad retina simulator 7 with iOS 7 and Xcode 5 GM. Verified does not occur with 3.1.2.GA in iPad Retina simulator 6.1 with Xcode 5 GM.
@Vishal, what's invalid about the test code? Should I not open the tabGroup before adding it to the SplitWindow? What's the proper way to do it?
[~slim.mckins] I think the comment is related to the fact that either the splitWindow or the tab group should be the top view controller.
@[~slim.mckins] Yes you should not be calling open on the tabGroup. Since it is managed by the SplitWindow it is the responsibility of the SplitWindow to open it properly.
Test Case With TabGroup and NavWindow and popover functionality
Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/4740 3_1_X - https://github.com/appcelerator/titanium_mobile/pull/4741
Tested and verified respond to focus events with: Appcelerator Studio, build: 3.1.3.201309132456 Titanium SDK, build: 3.1.4.v20130926144546 CLI 3.1.2 Alloy 1.2.2 Device: iPad mini iOS 7.0.2 (11A501)