{ "id": "115634", "key": "TIMOB-14144", "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": "15117", "description": "2013 Sprint 12 BB", "name": "2013 Sprint 12 BB", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-13T22:25:15.000+0000", "created": "2013-06-06T21:00:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "blackberry", "module_view", "qe-testadded", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-18T06:45:20.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "h4. Problem\r\nWhen creating Views, if no height is passed in or if height is set to Ti.UI.SIZE, the height behaves as if it were Ti.UI.FILL when the content's height is set to SIZE.\r\n\r\nh4. Code\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor: 'blue',\r\n\theight: Ti.UI.SIZE\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'hello world',\r\n\tbackgroundColor: 'red',\r\n\theight: Ti.UI.SIZE\r\n});\r\n\r\nview.add(label);\r\nwin.add(view);\r\n\r\n\r\nwin.open();\r\n{code}\r\n\r\nh4. What works\r\nIf the content has a hardcoded height, then the outer view will resize accordingly.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor: 'blue',\r\n\theight: Ti.UI.SIZE\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'hello world',\r\n\tbackgroundColor: 'red',\r\n\theight: 20\r\n});\r\n\r\nview.add(label);\r\nwin.add(view);\r\n\r\n\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Blackberry: Ti.UI.Views defaults height to FILL if content is SIZE", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "257724", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/86\nMerged into master", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-13T19:22:45.000+0000", "updated": "2013-06-13T19:22:45.000+0000" }, { "id": "257740", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3.1.x PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/102", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-13T20:45:48.000+0000", "updated": "2013-06-13T20:46:04.000+0000" }, { "id": "262293", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated label.\r\nClosing as fixed.\r\nVerified with environment:\r\n\r\nStudio: 3.1.2.201307161852\r\nTitanium SDK:3.1.2.v20130710144553\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.3.2\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:Blackberry-Z10(v 10.0.10.261)\r\nblackberry SDK: 10.1.0.1020\r\n\r\nBlackberry: Ti.UI.Views height Ti.UI.SIZE working if content is Ti.UI.SIZE", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-18T06:45:20.000+0000", "updated": "2013-07-18T06:45:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }