{ "id": "89732", "key": "TIMOB-8642", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-04-16T11:58:55.000+0000", "created": "2012-04-09T18:31:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "16629", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "80213", "key": "TIMOB-5268", "fields": { "summary": "iOS: Redraw is shown when a view with a vertical layout is hidden/shown", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:48:02.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": "h6.Issue\r\nWhen we hide an show view with vertical layout it redraw the view with layout absolute.\r\n\r\nh6.Steps to reproduce\r\n1. Click the window (yellow area)\r\n2. Watch out the view\r\n\r\nh6.Expected behavior\r\nView being shown as per it's layout settings\r\n\r\nh6.Repro sequence\r\n- app.js\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'yellow',\r\n});\r\n \r\nwin.addEventListener('click', function(){\r\n\tview.hide();\r\n\tsetTimeout(function(){\r\n\t\tview.show();\r\n\t},3000);\t\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\tlayout:'vertical',\r\n\tbackgroundColor:'red',\r\n\theight:'50%'\r\n});\r\n \r\nwin.add(view);\r\n \r\nvar left = Ti.UI.createLabel({\r\n title:'Left',\r\n backgroundColor:'blue',\r\n color:'black',\r\n width:'50%',\r\n height:'100%'\r\n});\r\n \r\nvar right = Ti.UI.createLabel({\r\n title:'Right',\r\n backgroundColor:'green',\r\n color:'black',\r\n width:'50%',\r\n height:'100%'\r\n});\r\n \r\nview.add(left);\r\nview.add(right);\r\n \r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: hide and show view with vertical layout will redraw the view with layout absolute", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": " Titanium SDK 1.8.2\r\n Titanium Studio, build: 2.1.0.201204041549\r\n iOS 5\r\n Mac OSX 10.7.2", "comment": { "comments": [ { "id": "191133", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'yellow',\r\n});\r\n \r\nwin.addEventListener('click', function(){\r\n view.hide();\r\n setTimeout(function(){\r\n view.show();\r\n },3000); \r\n});\r\n \r\nvar view = Ti.UI.createView({\r\n layout:'vertical',\r\n backgroundColor:'red',\r\n height:'50%'\r\n});\r\n \r\nwin.add(view);\r\n \r\nvar left = Ti.UI.createLabel({\r\n title:'Left',\r\n backgroundColor:'blue',\r\n color:'black',\r\n width:'50%',\r\n height:'50'\r\n});\r\n \r\nvar right = Ti.UI.createLabel({\r\n title:'Right',\r\n backgroundColor:'green',\r\n color:'black',\r\n width:'50%',\r\n height:'50'\r\n});\r\n \r\nview.add(left);\r\nview.add(right);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-16T11:09:20.000+0000", "updated": "2012-04-16T11:09:20.000+0000" }, { "id": "191135", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Already fixed in master and 2_0_X as part of TIMOB-5268", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-16T11:14:31.000+0000", "updated": "2012-04-16T11:14:31.000+0000" }, { "id": "191148", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-5268.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-16T11:58:55.000+0000", "updated": "2012-04-16T11:58:55.000+0000" }, { "id": "410838", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:48:02.000+0000", "updated": "2017-03-09T22:48:02.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }