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

Android: Horizontal Layout inside Vertical Layout does not wrap content correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: Release 3.0.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:

      Description

      Run the test code below. Only the first 3 buttons are seen instead of all 5
      Test Code

       
      var win = Ti.UI.createWindow({
      	backgroundColor:'white',
      	layout:'vertical'
      })
      var theFont = {fontSize: 12};
       
       
      function createControls(){
      	var controls1 = Ti.UI.createView({
      		height:Ti.UI.SIZE,
      		layout:'horizontal',
      		bottom:5,
      		horizontalWrap:true
      	})
      	var b1 = Ti.UI.createButton({title:'imageAsResized',font:theFont,right:5,bottom:5});
      	var b2 = Ti.UI.createButton({title:'imageWithTransparentBorder',font:theFont,right:5,bottom:5});
      	var b3 = Ti.UI.createButton({title:'imageAsCropped',font:theFont,right:5,bottom:5});
      	var b4 = Ti.UI.createButton({title:'imageWithRoundedCorner',font:theFont,right:5,bottom:5});
      	var b5 = Ti.UI.createButton({title:'imageAsThumnail',font:theFont,right:5,bottom:5});
      	controls1.add(b1);
      	controls1.add(b2);
      	controls1.add(b3);
      	controls1.add(b4);
      	controls1.add(b5);
      	
      	return controls1;
      }
       
      win.add(createControls());
       
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ayeung Allen Yeung
                Reporter:
                vduggal Vishal Duggal (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code