{ "id": "109506", "key": "TIMOB-12710", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-05-01T22:36:38.000+0000", "created": "2013-02-11T18:46:23.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "linvalid", "mobileweb" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:26.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": "*Problem*\r\nMobileWeb: View position is not consistent with expected results in other platforms. See example code and screenshots.\r\n\r\n*Steps to reproduce:*\r\n1) open project from attachment. \r\n2) Run it (as mobile web)\r\n\r\n*Expected result:*\r\nsee expected_in_android.png\r\n\r\n*Actual result*\r\nsee actual_in_webview.png\r\n\r\n*Code:*\r\n{noformat}\r\n\tvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'black'\r\n});\r\n\r\nvar self = Ti.UI.createScrollView({\r\n\t\twidth : 400,\r\n\t\theight : 400,\r\n\t\tbackgroundColor : 'red'\r\n\t})\r\nvar customView = Ti.UI.createView({\r\n\t\tbackgroundColor : 'green',\r\n\t\twidth : 50,\r\n\t\theight : 100,\r\n\t\tright : 25,\r\n\t\tbottom : 50\r\n\t})\r\n\r\nvar customView1 = Ti.UI.createView({\r\n\t\tbackgroundColor : 'yellow',\r\n\t\twidth : 50,\r\n\t\theight : 100,\r\n\t\tright : 50,\r\n\t\tbottom : 100\r\n\t}) \r\n\t\r\nvar customView2 = Ti.UI.createView({\r\n\t\tbackgroundColor : 'blue',\r\n\t\twidth : 50,\r\n\t\theight : 100,\r\n\t\tright : 75,\r\n\t\tbottom : 150\r\n\t})\r\n\t\r\nvar customView3 = Ti.UI.createView({\r\n\t\tbackgroundColor : 'cyan',\r\n\t\twidth : 50,\r\n\t\theight : 100,\r\n\t\tright : 0,\r\n\t\tbottom : 0\r\n\t});\r\n\r\n\tself.add(customView);\r\n\tself.add(customView1);\r\n\tself.add(customView2);\r\n\tself.add(customView3);\r\n\twin.add(self);\r\n\t\r\nwin.open();\r\n{noformat}", "attachment": [ { "id": "35533", "filename": "actual_in_webview.png", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T20:52:02.000+0000", "size": 9955, "mimeType": "image/png" }, { "id": "35534", "filename": "expected_in_android.png", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T20:53:34.000+0000", "size": 22354, "mimeType": "image/png" }, { "id": "35515", "filename": "scrollViewBottomBug_actual.png", "author": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-02-11T18:46:23.000+0000", "size": 4994, "mimeType": "image/png" }, { "id": "35516", "filename": "scrollViewBottomBug_expected.png", "author": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-02-11T18:46:23.000+0000", "size": 5607, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: Setting 'bottom' and 'right' properties for child elements of 'scrollView' causing strange result.", "creator": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Chrome 24.0, Chrome 26.0, Firefox 18, TI SDK 3.0.23", "comment": { "comments": [ { "id": "238214", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed bug. It seems that the mobileweb version of views are not being placed in the expected position of its parent. You can see that the for the cyan view where the bottom and right properties are set to 0 but the view is not in the bottom right hand corner.", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T20:51:01.000+0000", "updated": "2013-02-12T20:51:01.000+0000" }, { "id": "418509", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as \"Won't Fix\" as MobileWeb is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-01T22:36:38.000+0000", "updated": "2017-05-01T22:36:38.000+0000" }, { "id": "436372", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:26.000+0000", "updated": "2018-04-04T23:20:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }