{ "id": "99126", "key": "TIMOB-10427", "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-15T17:44:47.000+0000", "created": "2012-08-13T17:09:23.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-15T17:44:47.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": "h4. MobileWeb View updateLayout() does not do anything on action\r\nWorks in iOS, does not work on mobileweb\r\n\r\nh4. Steps to reproduce:\r\n1. copy code below into new project\r\n2. run in mobileweb\r\n Notice that when you click the grey rectangle it does not change shape or position\r\n3. run in iPhone emulator\r\n Notice that when you click the grey rectangle, it shrinks\r\n\r\nh4. CODE\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor:'#fff'\r\n});\r\nvar view = Ti.UI.createView({\r\n\twidth: 200,\r\n\theight: 300,\r\n\tbackgroundColor: '#444'\r\n});\r\nview.startLayout();\r\nview.top = 50;\r\nview.left = 50;\r\nview.finishLayout();\r\n\r\nview.addEventListener('click', function() {\r\n\tview.updateLayout({\r\n\t\ttop: 100,\r\n\t\tleft: 100,\r\n\t\twidth: 100,\r\n\t\theight: 150\r\n\t});\r\n});\r\nwin1.add(view);\r\nwin1.open();\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "MobileWeb: view updateLayout does not work correctly", "creator": { "name": "amiller", "key": "amiller", "displayName": "Alexander Miller", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amiller", "key": "amiller", "displayName": "Alexander Miller", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK: 2.2.0.v20120723112115\r\nGoogle Chrome\r\niOS", "comment": { "comments": [ { "id": "422063", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-15T17:44:47.000+0000", "updated": "2017-06-15T17:44:47.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }