{ "id": "88687", "key": "TIMOB-8268", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-03-26T09:21:26.000+0000", "created": "2012-03-24T09:41:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "look1", "parity", "qe-ios031912", "qe-nfc" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:03:00.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Steps to reproduce:\r\n1. Run the following code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'black',\r\n\twidth:Ti.UI.SIZE,\r\n\theight:Ti.UI.SIZE\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor:'white',\r\n\twidth:40,\r\n\theight:40\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nActual: The window does not shrink to fit the content like on Android. It behaves as if Ti.UI.FILL is still set. See attachments.\r\nExpected: The window should shrink to fit the content.", "attachment": [ { "id": "26558", "filename": "droid.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T09:41:59.000+0000", "size": 241347, "mimeType": "image/png" }, { "id": "26559", "filename": "ios.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T09:41:59.000+0000", "size": 16308, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Window - Setting the height and width to Ti.UI.SIZE does not shrink to content", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 2.0.0.v20120323221800\r\nTitanium Studio, build: 2.0.0.201203240504\r\nxcode: 4.3\r\nDevice: iphone 4s Verizon (5.0.1)", "comment": { "comments": [ { "id": "188580", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "It does shrink to size. It is just that the window background color is the same as the default UI background Color. Run this code to verify.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'black',\r\n\twidth:Ti.UI.SIZE,\r\n\theight:Ti.UI.SIZE,\r\n\tborderColor:'green',\r\n\tborderWidth:2\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor:'white',\r\n\twidth:40,\r\n\theight:40\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T09:21:26.000+0000", "updated": "2012-03-26T09:21:26.000+0000" }, { "id": "414035", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:03:00.000+0000", "updated": "2017-03-20T22:03:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }