Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28331

iOS: Updating the "labels" property in the "Ti.UI.TabbedBar" sometimes does not work

    Details

    • Story Points:
      3
    • Sprint:
      2021 Sprint 6, 2021 Sprint 10

      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();
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              hknoechel Hans Knöchel
              Reviewer:
              Christopher Williams
              Tester:
              Samir Mohammed
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration