[TIMOB-8682] Android: Setting "top" to null causes "bottom" to not be recognized
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-18T17:50:15.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-08 |
Components | Android |
Labels | SupportTeam, core, module_view, qe-testadded |
Reporter | Varun Joshi |
Assignee | Max Stepanov |
Created | 2012-04-11T12:47:44.000+0000 |
Updated | 2012-07-12T13:25:32.000+0000 |
Description
Problem
Setting top=null on the view causes bottom to not be recognized
Steps to Reproduce
Run the sample code below:
{noformat}
var win=Ti.UI.createWindow({
backgroundColor : 'blue'
});
var view=Ti.UI.createView({
width: 500,
height: 300,
top: null,
bottom: 0,
left: 0,
backgroundColor: 'green'
});
win.add(view);
win.open();
{noformat}
On 1.8.2 the "green" view fills up the entire window(screenshot1) but on the 2.0 CI, with top=null and bottom as 0, the view still is at the top instead of anchoring in the bottom (screenshot2)
Attachments
PR pending https://github.com/appcelerator/titanium_mobile/pull/2030
Closing issue Tested with Ti Studio build 2.1.0.201206200844 Ti Mobile SDK 2.1.0.v20120619172256 hash rd3a84b13 OSX Lion 10.7.3 iPhone 4S OS 5.1 The expected behavior is shown