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

Android: Default (horizontalWrap=true) horizontal layout centers children within rows

    Details

      Description

      var Window = Ti.UI.createWindow({ fullscreen: true, backgroundColor: 'white'});
       
      var ParentView = Ti.UI.createView({backgroundColor:'red',layout:'horizontal', width: Ti.UI.SIZE, height:300})
       
      var ChildView =Ti.UI.createView({backgroundColor:'green',layout:'horizontal', height:200, width: Ti.UI.FILL });
      var View =Ti.UI.createView({backgroundColor:'blue',height:120, width:50 });
      var View2 =Ti.UI.createView({backgroundColor:'yellow',height:120, width:50 });
       
      ChildView.add(View);
      ChildView.add(View2);
      ParentView.add(ChildView);
      Window.add(ParentView);
      Window.open();
      

      Expected:
      See iOS/MobileWeb snapshots

      Actual:
      See Android snapshot

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code