Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28331] iOS: Updating the "labels" property in the "Ti.UI.TabbedBar" sometimes does not work

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2021-05-18T18:30:07.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.0.0, Release 9.3.3
ComponentsiOS
LabelsiOS, label, tabbedbar
ReporterHans Knöchel
AssigneeVijay Singh
Created2021-01-29T17:01:22.000+0000
Updated2021-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();

Comments

  1. Vijay Singh 2021-03-08

    PR - https://github.com/appcelerator/titanium_mobile/pull/12526
  2. Samir Mohammed 2021-03-23

    FR Passed, waiting on Jenkins build
  3. Christopher Williams 2021-03-23

    merged to master, 10_0_X and 9_3_X branches.

JSON Source