[TIMOB-28331] iOS: Updating the "labels" property in the "Ti.UI.TabbedBar" sometimes does not work
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2021-05-18T18:30:07.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 10.0.0, Release 9.3.3 |
| Components | iOS |
| Labels | iOS, label, tabbedbar |
| Reporter | Hans Knöchel |
| Assignee | Vijay Singh |
| Created | 2021-01-29T17:01:22.000+0000 |
| Updated | 2021-05-18T18:30:11.000+0000 |
Description
On iOS, updating the "labels" property in the "Ti.UI.TabbedBar" sometimes does not work. We noticed this when having a tabbed-bar that is initialized without labels, the labels are sometimes not applied. It seems to be a sizing issue. See this test case:
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var btn = Ti.UI.createButton({
title: 'Trigger',
top: 100
});
var tabbedBar = Ti.UI.createTabbedBar({
// Uncomment to "fix" displaying issue
// width: 300
});
btn.addEventListener('click', function() {
tabbedBar.labels = [ 'Label1', 'Label2', 'Label3' ];
});
win.add(tabbedBar);
win.add(btn);
win.open();
PR - https://github.com/appcelerator/titanium_mobile/pull/12526
FR Passed, waiting on Jenkins build
merged to master, 10_0_X and 9_3_X branches.