{ "id": "76262", "key": "TIMOB-5670", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-06-13T03:36:47.000+0000", "created": "2011-06-13T02:42:58.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mnegadaylov", "key": "mnegadaylov", "displayName": "Maxim Negadaylov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T20:40:51.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "After changing layout property from horizontal to vertical the layout of the view is still horizontal. To change layout the view have to be redraw.\r\n{code:JavaScript}\r\nvar win = Ti.UI.currentWindow;\r\n\r\nvar view = Ti.UI.createView({\r\n\theight:300,\r\n\twidth:320,\r\n\tlayout:'horizontal'\r\n});\r\nwin.add(view);\r\n\r\nvar l1 = Ti.UI.createLabel({\r\n\ttext:'Click to change layout',\r\n\tleft:5,\r\n\twidth:'auto',\r\n\theight:20,\r\n\tfontSize: 20 \r\n});\r\n\r\nview.add(l1);\r\n\r\nvar l2 = Ti.UI.createLabel({\r\n\ttext:'I am the second label',\r\n\tleft:2,\r\n\twidth:'auto',\r\n\theight:20\r\n});\r\n\r\nview.add(l2);\r\n\r\nvar l3 = Ti.UI.createLabel({\r\n\ttext:'I am the third label',\r\n\tleft:2,\r\n\twidth:'auto',\r\n\theight:20\r\n});\r\n\r\nview.add(l3);\r\n\r\nl1.addEventListener('click', function(){\r\n\tview.layout = 'vertical';\r\n\tl1.text = 'Layout changed';\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Layout of the view does not changes after change of the property layout", "creator": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "subtasks": [], "reporter": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "environment": null, "comment": { "comments": [ { "id": "410456", "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-09T20:40:51.000+0000", "updated": "2017-03-09T20:40:51.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }