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

When title of button is short, Ti.UI.SIZE doesn't on Android

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android

      Description

      Look below capture!.

      iOS : works!
      Android : doesn't work! "s", "short", "short!" have same width.

      var win = Ti.UI.createWindow({backgroundColor : "white"});
      var button1 = Ti.UI.createButton({
          width: Ti.UI.SIZE,
          title: "I'm loooooooooooooong button",
          top : 0,
          height : 50
      });
      var button2 = Ti.UI.createButton({
          width: Ti.UI.SIZE,
          title: "s",
          top : 60,
          height : 50
      });
       
      var button3 = Ti.UI.createButton({
          width: Ti.UI.SIZE,
          title: "short",
          top : 120,
          height : 50
      });
       
      win.add(button1);
      win.add(button2);
      win.add(button3);
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yomybaby Jong Eun Lee
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration