[TIMOB-10175] Android: Vertical Layout does not respect the bottom when padding views
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-08-14T14:52:00.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | Sprint 2012-16 Core, Release 2.1.2, Release 3.0.0 |
| Components | Android |
| Labels | core, layout, module_views, qe-review, qe-testadded |
| Reporter | Vishal Duggal |
| Assignee | Allen Yeung |
| Created | 2012-07-26T16:27:50.000+0000 |
| Updated | 2012-08-15T10:51:09.000+0000 |
Description
In a vertical layout bottom is not used as padding. In the test case below the views are flush against each other although viw1 has bottom set to 5
Test Code
var win = Ti.UI.createWindow({
backgroundColor:'white',
layout:'vertical'
})
var view1 = Ti.UI.createView({
width:100,
height:100,
left:5,
bottom:5,
backgroundColor:'red'
})
var view2 = Ti.UI.createView({
width:100,
height:100,
left:5,
bottom:5,
backgroundColor:'green'
})
win.add(view1);
win.add(view2);
win.open();
Fixed by PR https://github.com/appcelerator/titanium_mobile/pull/2685
Verified fixed with: Titanium Studio, build: 2.1.1.201207271312 SDK version: 2.2.0.v20120810194112 Device: LG VS910 4G (2.3.6)
Re-opening to edit label
Reopen to update fix version