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

BlackBerry: Ti.UI.SIZE for width on components break position

    Details

      Description

      Problem

      When creating a UI component and giving it a width of Ti.UI.SIZE, the component will be placed at the 0,0 position of the parent view, no matter if top, left, right, and bottom are defined.

      Code

      var win = Ti.UI.createWindow({});
       
      var button = Ti.UI.createButton({
          top: 100,
          left: 50,
          width: Ti.UI.SIZE,
          title: 'this is a button'
      });
       
      win.add(button);
      win.open();
      

      More

      If margins are given, the component must respect them - not ignore them. If margin are not given, the component must be centered in the parent view, not be placed at 0,0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                penrique Pedro Enrique (Inactive)
                Reviewer:
                Russell McMahon
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16666
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration