[TIMOB-2692] activeTab undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M06 |
Components | Android |
Labels | android, defect, regression, release-1.6.0, reported-1.5.1, reported-1.6.0 |
Reporter | Kevin Whinnery |
Assignee | Don Thorp |
Created | 2011-04-15T03:27:09.000+0000 |
Updated | 2011-04-17T01:59:49.000+0000 |
Description
In 1.5.1 and 1.6.0 as of today, the activeTab
property of the tab group is undefined after the tab group is
initially created. To reproduce, add the following code to a
default Titanium-generated project:
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.setActiveTab(tab2);
// open tab group
tabGroup.open();
Ti.API.info("tabGroup: " + tabGroup.activeTab);
Attachments
File | Date | Size |
---|---|---|
app.js | 2011-04-15T03:27:10.000+0000 | 1616 |
(from [dfac4ccef9c30b6f537cb42fd81962484105209d]) [#2692 state:fixed-in-qa] rework activeTab get mechanism for TabGroup
reworked mechanism for getting activeTab value for TabGroupProxy. If no activeTab is manually set then the activeTab will reference the first tab created. The call to getActiveTab will return the correct tab even if the tabGroup has not yet been opened. If getActiveTab is called when no tabs have been added then a runtime exception is throw since the activeTab property must return a tabProxy object rather than an index.
https://github.com/appcelerator/titanium_mobile/commit/dfac4ccef9c30b6f537cb42fd81962484105209d"> https://github.com/appcelerator/titanium_mobile/commit/dfac4ccef9c3...
Please use attached app to verify fix.
verified on Nexus S / 2.3.2
rollback wrong update