{ "id": "117943", "key": "TIMOB-14754", "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-06-26T20:10:53.000+0000", "created": "2013-08-02T19:30:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "30603", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "117945", "key": "ALOY-772", "fields": { "summary": "Update dynamic_styling test app to account for TIMOB UI bugs", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:30.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": "h2. problem\r\n\r\nWhen adding a view with no positioning constraints to a ScrollView in Mobileweb, the view is positioned on the left side of the screen instead of in the center as the other platforms are.\r\n\r\nh2. expected\r\n\r\nThe view should be positioned in the middle of the Scrollview when no positioning properties are applied.\r\n\r\nh2. test case\r\n\r\nNote that simply change {{createScrollView}} to {{createView}} causes the label to be centered as expected. When the ScrollView is used, it is positioned on the left.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff',\r\n\tmodal: false,\r\n\texitOnClose: true\r\n});\r\nvar container = Ti.UI.createView({\r\n\tbackgroundColor: '#888'\r\n});\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'label',\r\n\theight: 60,\r\n\twidth: 150,\r\n\tbackgroundColor: '#afa'\r\n})\r\n\r\nwin.add(container);\r\ncontainer.add(label);\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Views are aligned to the left inside ScrollViews", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.2\r\nChrome 28.0.1500.95", "comment": { "comments": [ { "id": "264785", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This must have been changed: Mobile Web's behavior used to be the behavior on the other platforms (I remember because Mobile Web used to act the way iOS does now and I had to special case it out to the way Mobile Web acts now to match the other platforms).", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T20:06:01.000+0000", "updated": "2013-08-02T20:06:01.000+0000" }, { "id": "422818", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T20:10:53.000+0000", "updated": "2017-06-26T20:10:53.000+0000" }, { "id": "436400", "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:30.000+0000", "updated": "2018-04-04T23:20:30.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }