{ "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\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