{
"id": "165074",
"key": "TIMOB-24243",
"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": [
{
"id": "18928",
"name": "Release 6.0.2",
"archived": false,
"released": true,
"releaseDate": "2017-02-27"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2017-04-19T17:17:43.000+0000",
"created": "2016-12-20T04:42:43.000+0000",
"priority": {
"name": "Critical",
"id": "1"
},
"labels": [
"merge-6.0.2"
],
"versions": [
{
"id": "16980",
"description": "New V8",
"name": "Release 6.0.0",
"archived": false,
"released": true,
"releaseDate": "2016-11-15"
}
],
"issuelinks": [
{
"id": "54738",
"type": {
"id": "10122",
"name": "Gantt: start-finish",
"inward": "is triggered by",
"outward": "is triggering"
},
"outwardIssue": {
"id": "167199",
"key": "TIMOB-24600",
"fields": {
"summary": "Android: Ti.UI.SIZE doesn't work properly with horizontal layouts (regression)",
"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": "Critical",
"id": "1"
},
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
},
{
"id": "53929",
"type": {
"id": "10122",
"name": "Gantt: start-finish",
"inward": "is triggered by",
"outward": "is triggering"
},
"outwardIssue": {
"id": "165291",
"key": "TIMOB-24308",
"fields": {
"summary": "Android: Child view's percent width incorrect of horizontal layout parent view (6.1.0 regression)",
"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"
}
},
"priority": {
"name": "Critical",
"id": "1"
},
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
}
],
"assignee": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2017-04-19T17:19:56.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": "h5. Problem Description:\r\nWhen the parent is in horizontal layout and the right child's width is Ti.UI.FILL(occupying the available space left) with its height Ti.UI.SIZE to fit its content, some of the content is getting chopped off.\r\n\r\nh5. Steps to Reproduce:\r\nUse the attached app (index.xml, index.js , index.tss) to reproduce the problem and see the behavior.\r\n\r\nh5. Current Behavior:\r\nYou can see that the layout in items 2, 4, 6, 8 and 10 is distorted because of which \"ACKNOWLEDGE\" portion is chopped off.\r\n\r\nNote: If 2 more characters are added to the text in these rows, layout will be adjusted properly. This says that the layout is getting distorted for specific number of characters.\r\n\r\nh5. Expected Behavior:\r\nThe goal is:\r\n\r\n-------------------------------\r\n|Header1 | Label1 |\r\n| | Label2 |\r\n| | Label3 |\r\n| | Label4 |\r\n-------------------------------\r\n|Header2 | Label1 |\r\n| | Label2 |\r\n| | Label3 |\r\n| | Label4 |\r\n-------------------------------\r\n\r\n",
"attachment": [
{
"id": "61156",
"filename": "fixed.jpg",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-30T01:14:20.000+0000",
"size": 279208,
"mimeType": "image/jpeg"
},
{
"id": "61142",
"filename": "horizontalWrapFalse.jpg",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-22T19:16:43.000+0000",
"size": 281152,
"mimeType": "image/jpeg"
},
{
"id": "61141",
"filename": "horizontalWrapTrue.jpg",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-22T19:16:43.000+0000",
"size": 283475,
"mimeType": "image/jpeg"
},
{
"id": "61116",
"filename": "index.js",
"author": {
"name": "nmishra",
"key": "nmishra",
"displayName": "Neeraj Mishra",
"active": true,
"timeZone": "America/Phoenix"
},
"created": "2016-12-20T04:44:23.000+0000",
"size": 914,
"mimeType": "text/javascript"
},
{
"id": "61114",
"filename": "index.tss",
"author": {
"name": "nmishra",
"key": "nmishra",
"displayName": "Neeraj Mishra",
"active": true,
"timeZone": "America/Phoenix"
},
"created": "2016-12-20T04:44:46.000+0000",
"size": 360,
"mimeType": "application/octet-stream"
},
{
"id": "61115",
"filename": "index.xml",
"author": {
"name": "nmishra",
"key": "nmishra",
"displayName": "Neeraj Mishra",
"active": true,
"timeZone": "America/Phoenix"
},
"created": "2016-12-20T04:44:37.000+0000",
"size": 613,
"mimeType": "text/xml"
},
{
"id": "61143",
"filename": "label.jpg",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-22T19:17:29.000+0000",
"size": 39743,
"mimeType": "image/jpeg"
},
{
"id": "61117",
"filename": "screenshot-1.png",
"author": {
"name": "nmishra",
"key": "nmishra",
"displayName": "Neeraj Mishra",
"active": true,
"timeZone": "America/Phoenix"
},
"created": "2016-12-20T04:49:58.000+0000",
"size": 124606,
"mimeType": "image/png"
},
{
"id": "61144",
"filename": "Screen Shot 2016-12-22 at 11.46.57 AM.png",
"author": {
"name": "amukherjee",
"key": "amukherjee",
"displayName": "Abir Mukherjee",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-22T19:56:38.000+0000",
"size": 103542,
"mimeType": "image/png"
},
{
"id": "61147",
"filename": "screenshot-2016-12-22-with-change.png",
"author": {
"name": "nmishra",
"key": "nmishra",
"displayName": "Neeraj Mishra",
"active": true,
"timeZone": "America/Phoenix"
},
"created": "2016-12-22T22:13:09.000+0000",
"size": 269756,
"mimeType": "image/png"
},
{
"id": "61283",
"filename": "Screen Shot 2017-01-18 at 3.42.38 PM.png",
"author": {
"name": "amukherjee",
"key": "amukherjee",
"displayName": "Abir Mukherjee",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-01-18T23:51:15.000+0000",
"size": 123756,
"mimeType": "image/png"
},
{
"id": "61155",
"filename": "testcase.jpg",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-30T01:14:19.000+0000",
"size": 38830,
"mimeType": "image/jpeg"
}
],
"flagged": false,
"summary": "Android-Ti.UI.SIZE doesn't work properly with horizontal layouts",
"creator": {
"name": "nmishra",
"key": "nmishra",
"displayName": "Neeraj Mishra",
"active": true,
"timeZone": "America/Phoenix"
},
"subtasks": [],
"reporter": {
"name": "nmishra",
"key": "nmishra",
"displayName": "Neeraj Mishra",
"active": true,
"timeZone": "America/Phoenix"
},
"environment": "SDK: 6.0.0.GA\r\nAppc CLI : 6.0.0\r\nSimulator : Samsung Galaxy S7\r\nDevice: Samsung Galaxy S7 and LGG4",
"closedSprints": [
{
"id": 787,
"state": "closed",
"name": "2017 Sprint 01 SDK",
"startDate": "2016-12-31T02:15:33.446Z",
"endDate": "2017-01-14T02:15:00.000Z",
"completeDate": "2017-01-15T00:00:19.006Z",
"originBoardId": 114
}
],
"comment": {
"comments": [
{
"id": "403818",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "I taken a look at your {{index.xml}} and found a few issues with the layout. Here's the changes I have made:\r\n\r\n*index.xml*\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nNOTE: {{horizontalWrap}} will change the wrapping of the {{detail}} label. Here's screenshots of how it will look on a mobile device with text that is too long to fit on one line.\r\n\r\n*horizontalWrap=\"false\"*\r\n!horizontalWrapFalse.jpg|thumbnail!\r\n\r\n*horizontalWrap=\"true\"*\r\n!horizontalWrapTrue.jpg|thumbnail!\r\n\r\nHope this solves your issue!",
"updateAuthor": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-22T18:08:45.000+0000",
"updated": "2016-12-22T19:17:05.000+0000"
},
{
"id": "403823",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "However, I have noticed an issue with wrapping of {{Label}}. It creates a space and doesn't wrap the text onto the next line.\r\n\r\nAdding more characters or padding {{right: 10}} fixes this.\r\n\r\n*TEST CASE*\r\n{code:js}\r\nvar w = Ti.UI.createWindow({backgroundColor: 'grey'}),\r\n v = Ti.UI.createView({\r\n top: 0,\r\n backgroundColor: 'red',\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.SIZE,\r\n layout: 'horizontal'\r\n }),\r\n n = Ti.UI.createLabel({\r\n top: 0,\r\n text: '1.',\r\n backgroundColor: 'purple'\r\n }),\r\n t = Ti.UI.createLabel({\r\n text: 'Replenish the Uranium rod with dry ice every 6 hours.',\r\n width: Ti.UI.FILL,\r\n backgroundColor: 'orange'\r\n });\r\n\r\nv.add([n, t]);\r\n\r\nw.add(v);\r\nw.open();\r\n{code}\r\n\r\n!label.jpg|thumbnail!",
"updateAuthor": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-22T19:18:59.000+0000",
"updated": "2016-12-22T19:20:21.000+0000"
},
{
"id": "403831",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "[~nmishra] That seems to work.\r\n\r\n{code:xml}\r\n\r\n\r\n{code}\r\n\r\nAlso works",
"updateAuthor": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-22T22:38:45.000+0000",
"updated": "2016-12-22T22:38:45.000+0000"
},
{
"id": "403921",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "master: https://github.com/appcelerator/titanium_mobile/pull/8720\r\n\r\nTo resolve the layout issue with this fix amend the following:\r\n{code:xml}\r\n\r\n ...\r\n \r\n{code}\r\n\r\n!fixed.jpg|thumbnail!",
"updateAuthor": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-30T01:16:41.000+0000",
"updated": "2016-12-30T01:27:11.000+0000"
},
{
"id": "404589",
"author": {
"name": "engross",
"key": "engross",
"displayName": "Dongwoo Gim",
"active": true,
"timeZone": "Asia/Seoul"
},
"updateAuthor": {
"name": "engross",
"key": "engross",
"displayName": "Dongwoo Gim",
"active": true,
"timeZone": "Asia/Seoul"
},
"created": "2017-01-13T14:41:12.000+0000",
"updated": "2017-01-13T14:41:33.000+0000"
},
{
"id": "404823",
"author": {
"name": "amukherjee",
"key": "amukherjee",
"displayName": "Abir Mukherjee",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Tested with this environment:\r\nNPM Version: 2.15.9\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.1.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.1.0.v20170118081704\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.2\r\nAndroid Device: 6.0.1\r\n\r\nI tested with the above environment, and the \"ACKNOWLEDGE\" portion is still getting truncated when question wraps around to two lines. This can also be seen with the Emulator (attached). \r\n[~gmathews] Above you mention that some code needs to be amended. Can you please clarify how to amend it? Or better, if you can attach/paste the complete code.\r\n\r\n!Screen Shot 2017-01-18 at 3.42.38 PM.png|thumbnail!",
"updateAuthor": {
"name": "amukherjee",
"key": "amukherjee",
"displayName": "Abir Mukherjee",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-01-18T23:50:53.000+0000",
"updated": "2017-01-18T23:51:53.000+0000"
},
{
"id": "404912",
"author": {
"name": "engross",
"key": "engross",
"displayName": "Dongwoo Gim",
"active": true,
"timeZone": "Asia/Seoul"
},
"body": "Bugs fix and commit cleanup \r\nhttps://github.com/appcelerator/titanium_mobile/pull/8766",
"updateAuthor": {
"name": "engross",
"key": "engross",
"displayName": "Dongwoo Gim",
"active": true,
"timeZone": "Asia/Seoul"
},
"created": "2017-01-20T09:45:52.000+0000",
"updated": "2017-01-20T09:46:28.000+0000"
},
{
"id": "405370",
"author": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8794",
"updateAuthor": {
"name": "gmathews",
"key": "gmathews",
"displayName": "Gary Mathews",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-01-26T11:56:19.000+0000",
"updated": "2017-01-26T11:56:19.000+0000"
},
{
"id": "405517",
"author": {
"name": "awaldman",
"key": "awaldman",
"displayName": "Andy Waldman",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Friday 27th January 2017\r\nENV:\r\nMacOS:10.12.1 \r\nXCODE: 8.2.1 GM (golden master) \r\nAPPC CLI Core: 6.1.0 \r\nAPPC CLI NPM: 4.2.8 \r\nSDK: 6.0.2.v20170126173908 \r\nStudio build: 4.8.1.201612050850 \r\nNPM: 2.15.9 \r\nNode: 4.5.0 \r\n\r\nStep 1) copy this into app.js:\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n layout: \"vertical\"\r\n});\r\n\r\n// first row\r\nvar view = Ti.UI.createView({\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.FILL,\r\n layout: \"horizontal\",\r\n backgroundColor: \"gray\"\r\n});\r\n\r\nvar view1 = Ti.UI.createView({\r\n width: \"25%\",\r\n height: 100,\r\n backgroundColor: \"red\"\r\n});\r\n\r\nvar view2 = Ti.UI.createView({\r\n width: \"25%\",\r\n height: 100,\r\n backgroundColor: \"green\"\r\n});\r\n\r\nvar view3 = Ti.UI.createView({\r\n width: \"25%\",\r\n height: 100,\r\n backgroundColor: \"blue\"\r\n});\r\n\r\nvar view4 = Ti.UI.createView({\r\n width: \"25%\",\r\n height: 100,\r\n backgroundColor: \"yellow\"\r\n});\r\n\r\nview.add(view1);\r\nview.add(view2);\r\nview.add(view3);\r\nview.add(view4);\r\n\r\n// second row\r\nvar v = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.SIZE,\r\n layout: 'horizontal'\r\n});\r\n\r\nvar n = Ti.UI.createLabel({\r\n top: 0,\r\n text: '1.',\r\n backgroundColor: 'purple'\r\n});\r\n\r\nvar t = Ti.UI.createLabel({\r\n text: 'Replenish the Uranium rod with dry ice every 6 hours Hello andy how are you.',\r\n width: Ti.UI.FILL,\r\n backgroundColor: 'orange'\r\n});\r\n\r\nv.add(n);\r\nv.add(t);\r\n\r\n// third row\r\nvar third = Ti.UI.createView({\r\n backgroundColor: 'grey',\r\n left: 20, right: 20,\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.SIZE,\r\n layout: 'horizontal'\r\n});\r\n\r\nfunction createItem(_text) {\r\n var wrap = Ti.UI.createView({\r\n backgroundColor:\"#ffffff\",\r\n width:Ti.UI.SIZE, height:31,\r\n left:3, right:3, top:4, bottom: 4,\r\n borderColor: \"#ff5757\", borderRadius: 15.5, borderWidth: 1\r\n });\r\n\r\n var labelWrap = Ti.UI.createView({\r\n width:Ti.UI.SIZE, height: Ti.UI.SIZE,\r\n left: 14, right: 14\r\n });\r\n\r\n var label = Ti.UI.createLabel({\r\n height : 18,\r\n width: Ti.UI.SIZE,\r\n wordWrap:false,\r\n color:\"#ff5757\", font: { fontSize: 14, fontWeight: 'regular' },\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER, verticalAlign: Ti.UI.TEXT_VERTICAL_ALIGNMENT_CENTER,\r\n text: _text\r\n });\r\n\r\n labelWrap.add(label);\r\n wrap.add(labelWrap);\r\n return wrap;\r\n}\r\n\r\nthird.add( createItem('#한자급수') );\r\nthird.add( createItem('#자유학기제') );\r\nthird.add( createItem('#기반학습') );\r\nthird.add( createItem('#많은수업시간') );\r\nthird.add( createItem('#레벨시스템') );\r\nthird.add( createItem('#담임제도') );\r\n\r\n// add to win\r\nwin.add(view);\r\nwin.add(v);\r\nwin.add(third);\r\nwin.open();\r\n{code}\r\n\r\nStep 2) run the application \r\nStep 3) see that the writing wraps properly horizontally \r\n\r\nI can verify this ticket is working and will close it \r\n",
"updateAuthor": {
"name": "awaldman",
"key": "awaldman",
"displayName": "Andy Waldman",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-01-27T19:20:12.000+0000",
"updated": "2017-01-27T19:20:12.000+0000"
},
{
"id": "417140",
"author": {
"name": "michael",
"key": "michael",
"displayName": "Michael Gangolf",
"active": true,
"timeZone": "Europe/Berlin"
},
"body": "I have a very complex layout with multiple textfields and labels (all height: ti.ui.size) inside a view/scrollview (like a popup) with horizontal layout. 6.0.1.GA shows all elements but >=6.0.2.GA the elements are only visible up to a certain height. I will try to narrow it down and create a example. But it looks like this patch made it stop working on android.",
"updateAuthor": {
"name": "michael",
"key": "michael",
"displayName": "Michael Gangolf",
"active": true,
"timeZone": "Europe/Berlin"
},
"created": "2017-04-10T19:32:58.000+0000",
"updated": "2017-04-10T19:32:58.000+0000"
},
{
"id": "417168",
"author": {
"name": "hknoechel",
"key": "hansknoechel",
"displayName": "Hans Knöchel",
"active": true,
"timeZone": "Europe/Berlin"
},
"body": "[~michael] Reopened the ticket, can you try to provide your specific test-case asap? I saw this behavior as well, but it's also a quite complex (Alloy-based) layout.",
"updateAuthor": {
"name": "hknoechel",
"key": "hansknoechel",
"displayName": "Hans Knöchel",
"active": true,
"timeZone": "Europe/Berlin"
},
"created": "2017-04-11T07:58:14.000+0000",
"updated": "2017-04-11T07:58:14.000+0000"
},
{
"id": "417650",
"author": {
"name": "michael",
"key": "michael",
"displayName": "Michael Gangolf",
"active": true,
"timeZone": "Europe/Berlin"
},
"body": "At the moment I wasn't able to create a test case. I can provide some log output if that helps. Its a very complex layout and can't extract the layout that easily. I have some screenshots, a video of the hierarchy view and could add some logs in TiCompositeLayout.java. ",
"updateAuthor": {
"name": "michael",
"key": "michael",
"displayName": "Michael Gangolf",
"active": true,
"timeZone": "Europe/Berlin"
},
"created": "2017-04-19T12:33:18.000+0000",
"updated": "2017-04-19T12:33:18.000+0000"
}
],
"maxResults": 23,
"total": 23,
"startAt": 0
}
}
}