Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8682] Android: Setting "top" to null causes "bottom" to not be recognized

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-04-18T17:50:15.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.1.0, Sprint 2012-08
ComponentsAndroid
LabelsSupportTeam, core, module_view, qe-testadded
ReporterVarun Joshi
AssigneeMax Stepanov
Created2012-04-11T12:47:44.000+0000
Updated2012-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

FileDateSize
screenshot1.png2012-04-11T12:47:44.000+0000502961
screenshot2.png2012-04-11T12:47:44.000+0000456273

Comments

  1. Max Stepanov 2012-04-18

    PR pending https://github.com/appcelerator/titanium_mobile/pull/2030
  2. Michael Pettiford 2012-06-20

    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

JSON Source