{ "id": "108981", "key": "TIMOB-12537", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15095", "description": "2013 Sprint 03 BB", "name": "2013 Sprint 03 BB", "archived": true, "released": true, "releaseDate": "2013-02-11" }, { "id": "14813", "description": "2013 Sprint 03", "name": "2013 Sprint 03", "archived": true, "released": true, "releaseDate": "2013-02-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-02T07:53:49.000+0000", "created": "2013-01-31T22:56:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T01:00:25.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": "The SIZE and FILL constants need to be defined on the UI module.\r\nThe layout engine expects the current values:\r\n - SIZE -> \"UI.SIZE\"\r\n - FILL -> \"UI.FILL\"\r\n\r\nh3. Acceptance Test\r\n{code:javascript}\r\nTi.API.info('Ti.UI.FILL = ' + Ti.UI.FILL);\r\nTi.API.info('Ti.UI.SIZE = ' + Ti.UI.SIZE);\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor: 'blue',\r\n\twidth: Ti.UI.FILL, height: Ti.UI.SIZE\r\n});\r\nwin.add(view);\r\n\r\nvar childView = Ti.UI.createView({\r\n\tbackgroundColor: 'red',\r\n\twidth: 200, height: 200\r\n});\r\nview.add(childView);\r\n\r\nwin.open();\r\n{code}\r\n\r\n1. The FILL and SIZE constant values should be printed to the log.\r\n Verify they contain the correct value ('UI.SIZE', 'UI.FILL').\r\n2. A blue view should be visible that fills the window horizontally\r\n and sizes vertically to fit it's child view (red).\r\n3. A red view should be visibile that fills vertically and is 200 dp horizontally.\r\n", "attachment": [], "flagged": false, "summary": "BlackBerry: Define Ti.UI.SIZE and Ti.UI.FILL constants", "creator": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "236999", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created pull request [#22|https://github.com/appcelerator/titanium_mobile_blackberry/pull/22] to resolve issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-02T02:35:09.000+0000", "updated": "2013-02-02T02:35:09.000+0000" }, { "id": "410182", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T01:00:25.000+0000", "updated": "2017-03-09T01:00:25.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }