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

Android: Ti.UI.SIZE on width does not work with horizontal layouts

    Details

      Description

      Run the test case:

      var win = Ti.UI.createWindow({ backgroundColor: 'white' });
      var view = Ti.UI.createView({ width: Ti.UI.SIZE, height: 30, layout: 'horizontal', backgroundColor: 'red' });
      view.add(Ti.UI.createLabel({ text: 'Hello', height: 30, top: 0, color: 'white' }));
      view.add(Ti.UI.createLabel({ text: 'From Titanium', height: 30, top: 0, color: 'blue', left: 5 }));
      win.add(view);
      win.open();
      

      The red view's width should not be size of the screen. This was a regression caused by TIMOB-10003.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ayeung Allen Yeung
                Reporter:
                ayeung Allen Yeung
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code