{ "id": "82601", "key": "TIMOB-6143", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "12086", "description": "", "name": "Sprint 2011-46", "archived": true, "released": true, "releaseDate": "2011-11-21" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-04T16:45:34.000+0000", "created": "2011-11-10T10:53:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_scrollview", "qe-testadded" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false } ], "issuelinks": [ { "id": "56051", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "170057", "key": "TIMOB-25410", "fields": { "summary": "Android: ContentHeight set to auto positions a view with bottom zero at the top of a scrollview", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-10-18T23:06:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. Problem\r\n\r\nComponents aligned to the bottom (bottom: 0) do not get aligned as expected inside ScrollView for Android\r\n\r\nh3. Reproducible steps:\r\n \r\n1. Run the code below\r\n\r\nNotice that the view object is on the top of the window\r\n\r\nh3. Expected behavior:\r\nCustomer wants to have an object on the bottom of a ScrollView\r\n\r\nMore info:\r\nIn iOS works well.\r\n\r\nh3. Sample code:\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nvar hull = Ti.UI.createScrollView({\r\n\twidth : '100%',\r\n\theight : '100%',\r\n\tbackgroundColor : 'blue',\r\n contentHeight:'auto',\r\n\tcontentWidth:'auto'\r\n});\r\n\r\nvar fixedView = Ti.UI.createView({\r\n\twidth : '100%',\r\n\theight : 30,\r\n\tbottom : 0, //this does not work in Android\r\n\tbackgroundColor : 'green',\r\n\t\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor : '#999',\r\n\ttext : 'I am footer',\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\twidth : 'auto',\r\n\tbottom : 0\r\n});\r\n\r\n\r\nfixedView.add(label1);\r\nhull.add(fixedView);\r\nwin1.add(hull);\r\nwin1.open();\r\n\r\n{code}\r\n \r\nh3. Helpdesk\r\nAPP-231181 \r\n\r\n ", "attachment": [ { "id": "24113", "filename": "1.7.6.v20111104233055 & 1.8.0.v20111028154620 Android 2.3.3.png", "author": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-10T10:53:58.000+0000", "size": 98703, "mimeType": "image/png" }, { "id": "24112", "filename": "1.7.6.v20111104233055 & 1.8.0.v20111028154620 iOS 4.3.png", "author": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-10T10:53:58.000+0000", "size": 119622, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Bottom alignment in ScrollView does not work on Android", "creator": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Samsung Galaxy Fit-Android Version : 2.2.1\r\niPhone 3G Version: 4.3.5\r\n\r\nTitanium Studio, build: 1.0.6.201110251616\r\nTitanium SDK: 1.7.6.v20111104233055 & 1.8.0.v20111106143455\r\niOS SDK: 4.3", "comment": { "comments": [ { "id": "175254", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.1.v20111207090257\r\nXoom (3.2.1) - v8\r\nSamsung Tab 10.1 (3.1) - rhino", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T15:30:56.000+0000", "updated": "2011-12-07T15:30:56.000+0000" }, { "id": "178050", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Open to add label\r\n", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T16:36:24.000+0000", "updated": "2012-01-04T16:36:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }