[TIMOB-10173] Android: Horizontal Layout inside Vertical Layout does not wrap content correctly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-07-31T17:02:43.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | core, layout, look1 |
Reporter | Vishal Duggal |
Assignee | Allen Yeung |
Created | 2012-07-26T16:21:11.000+0000 |
Updated | 2017-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();
This seems to be a duplicate of TIMOB-10003, and should be resolved by https://github.com/appcelerator/titanium_mobile/pull/2663
Closing ticket as duplicate with reference to the above comments.