{ "id": "123397", "key": "TIMOB-15905", "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": "15715", "description": "2013 Sprint 25", "name": "2013 Sprint 25", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "15716", "description": "2013 Sprint 25 API", "name": "2013 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-06T00:32:03.000+0000", "created": "2013-12-05T20:58:44.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_window", "qe-testadded", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "33625", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "122908", "key": "ALOY-886", "fields": { "summary": "Android: some widget samples does not show with TiSDK 3.2.X", "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": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-29T17:52:38.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": "h2. problem\r\n\r\nIt seems that as of TiSDK 3.2.0, when containing Windows mix implicit with explicit definitions of height and width that the views inside of it do not layout properly when they attempt to use Ti.UI.FILL. Since this is a hard one to explain clearly, it's best to look at the very simple test case below. With that test case as is, you will just see a black screen on Android (tested on 4.2.2), which is not expected. If you comment out the {{height:Ti.UI.FILL}}, it shows the red view covering the screen, which is the expected behavior.\r\n\r\nThere are likely many permutations of this issue that can affect layouts, but this is the simplest test case I created to surface the issue.\r\n\r\nh2. test case\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff',\r\n\t\r\n\t// comment out height here and the view shows up fine\r\n\theight: Ti.UI.FILL\r\n});\r\n\r\nwin.add(Ti.UI.createView({\r\n\tbackgroundColor: '#a00',\r\n\theight: Ti.UI.FILL,\r\n\twidth: Ti.UI.FILL\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\nh2. expected\r\n\r\nViews within a Ti.UI.Window on Android should be able to use Ti.UI.FILL to set there height and width regardless of whether or not height and width are explicitly set in the containing Window, since height and width should be Ti.UI.FILL by default for Windows.", "attachment": [], "flagged": false, "summary": "Android: Views using Ti.UI.FILL don't layout correctly when containing Window has implicit height/width", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.2.0.v20131204220843\r\nAndroid 4.2.2 (Galaxy nexus)", "comment": { "comments": [ { "id": "282695", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "can you please investigate?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T21:01:05.000+0000", "updated": "2013-12-05T21:01:05.000+0000" }, { "id": "282715", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/5069", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T21:45:48.000+0000", "updated": "2013-12-05T21:45:48.000+0000" }, { "id": "282748", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.2.X PR: https://github.com/appcelerator/titanium_mobile/pull/5072", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T23:28:05.000+0000", "updated": "2013-12-05T23:28:05.000+0000" }, { "id": "283788", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified with Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201312101708\r\nSDK: 3.2.0.v20131210191510\r\nalloy: 1.3.0-cr\r\nacs: 1.0.10\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-cr\r\ntitanium-code-processor: 1.1.0-cr\r\n\r\nDevice: Nexus 7(v4.2.1)/Mac 9\r\n\r\nIt works as expected. Hence closing the issue.", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-11T10:01:47.000+0000", "updated": "2013-12-11T10:01:47.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }