{ "id": "88692", "key": "TIMOB-8271", "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:24:20.000+0000", "created": "2012-03-24T10:51:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "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-13T18:07:33.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:title=app.js}\r\n\r\nvar win = Ti.UI.createWindow();\r\nwin.backgroundColor = 'white';\r\n\r\nvar buttonStart = Ti.UI.createButton({\r\n\ttitle: 'Start',\r\n\ttop: 20,\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE\r\n\r\n});\r\nvar buttonFinish = Ti.UI.createButton({\r\n\ttitle: 'Finish',\r\n\ttop: 140,\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE\t\r\n});\r\nvar buttonUpdate = Ti.UI.createButton({\r\n\ttitle: 'Update',\r\n\ttop: 260,\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE\r\n});\r\n\r\nbuttonStart.addEventListener('click', function()\r\n{\t\r\n\tview.startLayout();\r\n\tview.width = 75;\r\n\tview.height = 75;\r\n});\r\n\r\nbuttonFinish.addEventListener('click', function()\r\n{\t\r\n\tview.finishLayout();\r\n});\r\n\r\n\r\nbuttonUpdate.addEventListener('click', function()\r\n{\t\r\n\tview.updateLayout({\r\n\t\theight: 100,\r\n\t\twidth:100\r\n\t});\r\n});\r\n\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor: 'red',\r\n\theight: 50,\r\n\twidth: 50,\r\n\ttop: 330\r\n})\r\n\r\n\r\nwin.add(buttonStart);\r\nwin.add(buttonFinish);\r\nwin.add(buttonUpdate);\r\nwin.add(view);\r\nwin.open();\r\n\r\n{code}\r\n\r\n2. Press Start\r\n\r\nActual: The red square becomes bigger.\r\nExpected: The red square should not get bigger until you press Finish.\r\n\r\nNote: The above code works as expected on Android.", "attachment": [], "flagged": false, "summary": "iOS: Composite Layout - startLayout() is not respected ", "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": "188583", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The immediate mode of layout update is deprecated not removed. Once we remove the support for immediate mode the startLayout/finishLayout calls will be respected.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T09:24:20.000+0000", "updated": "2012-03-26T09:24:20.000+0000" }, { "id": "411444", "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-13T18:07:33.000+0000", "updated": "2017-03-13T18:07:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }