Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10173] Android: Horizontal Layout inside Vertical Layout does not wrap content correctly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-07-31T17:02:43.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelscore, layout, look1
ReporterVishal Duggal
AssigneeAllen Yeung
Created2012-07-26T16:21:11.000+0000
Updated2017-03-21T23:01:53.000+0000

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();

Comments

  1. Allen Yeung 2012-07-31

    This seems to be a duplicate of TIMOB-10003, and should be resolved by https://github.com/appcelerator/titanium_mobile/pull/2663
  2. Lee Morris 2017-03-21

    Closing ticket as duplicate with reference to the above comments.

JSON Source