Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10175] Android: Vertical Layout does not respect the bottom when padding views

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-08-14T14:52:00.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sSprint 2012-16 Core, Release 2.1.2, Release 3.0.0
ComponentsAndroid
Labelscore, layout, module_views, qe-review, qe-testadded
ReporterVishal Duggal
AssigneeAllen Yeung
Created2012-07-26T16:27:50.000+0000
Updated2012-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();

Comments

  1. Vishal Duggal 2012-08-07

    Fixed by PR https://github.com/appcelerator/titanium_mobile/pull/2685
  2. Evgenii Tcarev 2012-08-13

    Verified fixed with: Titanium Studio, build: 2.1.1.201207271312 SDK version: 2.2.0.v20120810194112 Device: LG VS910 4G (2.3.6)
  3. Shyam Bhadauria 2012-08-14

    Re-opening to edit label
  4. Ping Wang 2012-08-14

    Reopen to update fix version

JSON Source