{ "id": "103670", "key": "TIMOB-11941", "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": "2017-06-06T18:24:00.000+0000", "created": "2012-10-19T14:48:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-06T18:24: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": "*Problem description*\r\nIf you run the testcase, when pushing the button, the red view will appear and you will see it of width 50 before going quickly to 200. Actually you expect it to be directly 200 when you show it as you set the property before calling \"show.\" So the view should force itself to relayout before becoming visible. It comes from the method willShow of TiViewProxy.\r\n\r\n*Pull request*\r\nSee comment.\r\n\r\n*Test case*\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\r\n\r\nvar label = Ti.UI.createLabel({\r\n height:50,\r\n width:50,\r\n top:2,\r\n backgroundColor:'red',\r\n visible:false\r\n});\r\n\r\nwin.add(label);\r\n\r\nvar b1 = Ti.UI.createButton({\r\n title:'ADD CHILD',\r\n bottom:10,\r\n height:35\r\n});\r\n\r\nb1.addEventListener('click',function(){\r\n\tlabel.width = 200;\r\n label.show();\r\n});\r\n\r\nwin.add(b1);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: When showing a view, we should first relayout", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "titanium 3.1.0 master\r\nios sdk 6.0\r\nsimulator / device ", "comment": { "comments": [ { "id": "224441", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request https://github.com/appcelerator/titanium_mobile/pull/3297", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-10-19T14:55:55.000+0000", "updated": "2012-10-19T14:55:55.000+0000" }, { "id": "244085", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T08:22:31.000+0000", "updated": "2013-03-26T08:22:31.000+0000" }, { "id": "300124", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR is dead, so deferring for now.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-07T21:45:26.000+0000", "updated": "2014-04-07T21:45:26.000+0000" }, { "id": "421109", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing with reference to Ingo's comment.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-06T18:24:00.000+0000", "updated": "2017-06-06T18:24:00.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }