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

ProgressBar: Width should default to Ti.UI.FILL

    Details

    • Sprint:
      2016 Sprint 07 SDK

      Description

      It makes no sense to me that the width of a ProgressBar defaults to Ti.UI.SIZE. In particular without a message it's of no use that way. And since that means everyone who uses it has manually set it to Ti.UI.FILL or an absolute/relative value, we can change this to be Ti.UI.FILL without likely breaking any app at all.

      var win = Ti.UI.createWindow({
        backgroundColor: 'white'
      });
       
      win.add(Ti.UI.createProgressBar({
        top: 50,
        value: 0.5,
        backgroundColor: '#eee'
      }));
       
      win.add(Ti.UI.createProgressBar({
        top: 100,
        width: Ti.UI.FILL,
        value: 0.5,
        backgroundColor: '#eee'
      }));
       
      win.add(Ti.UI.createProgressBar({
        top: 150,
        value: 0.5,
        message: 'Half way there',
        backgroundColor: '#eee'
      }));
       
      win.add(Ti.UI.createProgressBar({
        top: 200,
        width: Ti.UI.FILL,
        value: 0.5,
        message: 'Half way there',
        backgroundColor: '#eee'
      }));
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                fokkezb Fokke Zandbergen
                Reviewer:
                Angel Petkov
              • Watchers:
                4 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