{ "id": "161818", "key": "TIMOB-23648", "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": "2016-07-20T09:37:31.000+0000", "created": "2016-07-18T02:32:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-07-20T09:37:31.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Reproduce Step:\r\n1. Run the following code in a classic project.\r\n{code}\r\nvar tourWindow = Ti.UI.createWindow({});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\tvar contain0 = Ti.UI.createView({\r\n\t\twidth:'80%',\r\n\t\theight:Ti.UI.SIZE,\r\n\t\tlayout:'vertical'\r\n\t});\r\n\t\r\n\tvar hdrWelcome = Ti.UI.createImageView({\r\n\t\timage:'hdr-welcome.png'\r\n\t});\r\n\t\r\n\tvar btnGroup = Ti.UI.createView({\r\n\t\twidth:Ti.UI.FILL,\r\n\t\theight:Ti.UI.SIZE,\r\n\t\tborderColor:'yellow'\r\n\t});\r\n\t\r\n\tvar quickTourBtn = Ti.UI.createButton({\r\n\t\ttitle:'quick tour',top:20,left:0,width:'50%',height:50,color:'white',textAlign:'center'\r\n\t});\r\n\tvar skipBtn = Ti.UI.createButton({\r\n\t\ttitle:'skip',top:20,right:0,width:'50%',height:50,color:'white',textAlign:'center'\r\n\t});\t\r\n\t\r\n\tbtnGroup.add(quickTourBtn,skipBtn);\r\n\tcontain0.add(hdrWelcome,btnGroup);\r\n\ttourWindow.add(contain0);\r\n\ttourWindow.open();\r\n{code}\r\n\r\nh6.Problem.\r\n1. Run on iOS, it works well as expected (attached screen shot).\r\n2. Run on Android, it does not work well as expected (attached screen shot).", "attachment": [ { "id": "59808", "filename": "hdr-welcome.png", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2016-07-18T02:37:16.000+0000", "size": 2358, "mimeType": "image/png" }, { "id": "59810", "filename": "Not expected on Android.png", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2016-07-18T02:36:54.000+0000", "size": 29799, "mimeType": "image/png" }, { "id": "59809", "filename": "work well in iOS.PNG", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2016-07-18T02:36:54.000+0000", "size": 62320, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Layout engine does not work well as expected on iOS", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "TI SDK 3.5.1\r\nAndroid 4.2.2", "comment": { "comments": [ { "id": "391082", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Closing as invalid, after [~sliang] confirmed that the provided solution is the proper way to go here.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-20T09:37:31.000+0000", "updated": "2016-07-20T09:37:31.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }