{ "id": "160240", "key": "TIMOB-23391", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-02-15T23:09:00.000+0000", "created": "2016-05-13T05:34:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "17993", "description": "Release 5.2.2", "name": "Release 5.2.2", "archived": false, "released": true, "releaseDate": "2016-04-05" } ], "issuelinks": [ { "id": "54993", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "168002", "key": "TIMOB-24753", "fields": { "summary": "iOS: View sizes are incorrect in 6.1.0.GA (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": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-31T11:52:24.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Steps to Reproduce: \r\n\r\n1. Create array of Strings.\r\n i.e. var stringArray = [ \"Appcelerator Studio\", \" Titanium\", .... ];\r\n2. Create a view with dynamic height and layout as horizontal.\r\n3. Create a loop with Array length.\r\n a. Create a view with dynamic width and give \"left\" property some value in \"dp\".\r\n b. Create a label with \"wordWrap\", \"ellipsize\" property as false and add \"text\" property with one string value as per index given in Array.\r\n c. Add the label in current view.\r\n d. Add the current view in horizontal view.\r\n\r\n\r\nExpected Result :\r\n Horizontal view should wrap the views inside horizontal view properly without cropping the label.\r\n\r\nActual Result:\r\n Horizontal view does not wrap the views inside horizontal view and label gets cropped.", "attachment": [ { "id": "59217", "filename": "index.js", "author": { "name": "nikeshmahajan", "key": "nikeshmahajan", "displayName": "Nikesh Vasant Mahajan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-13T05:16:49.000+0000", "size": 965, "mimeType": "text/javascript" }, { "id": "59218", "filename": "index.tss", "author": { "name": "nikeshmahajan", "key": "nikeshmahajan", "displayName": "Nikesh Vasant Mahajan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-13T05:16:33.000+0000", "size": 189, "mimeType": "application/octet-stream" }, { "id": "59219", "filename": "index.xml", "author": { "name": "nikeshmahajan", "key": "nikeshmahajan", "displayName": "Nikesh Vasant Mahajan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-13T05:16:07.000+0000", "size": 95, "mimeType": "text/xml" }, { "id": "59231", "filename": "Screen Shot 2016-05-14 at 3.37.50 AM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-05-13T21:38:39.000+0000", "size": 15721, "mimeType": "image/png" }, { "id": "59220", "filename": "Simulator Screen Shot 13-May-2016, 10.41.07 AM.png", "author": { "name": "nikeshmahajan", "key": "nikeshmahajan", "displayName": "Nikesh Vasant Mahajan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-13T05:15:20.000+0000", "size": 54702, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: View is not getting horizontally wrapped properly.", "creator": { "name": "nikeshmahajan", "key": "nikeshmahajan", "displayName": "Nikesh Vasant Mahajan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nikeshmahajan", "key": "nikeshmahajan", "displayName": "Nikesh Vasant Mahajan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Node.js :\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n\r\nAppcelerator CLI :\r\n Installer = 4.2.4\r\n Core Package = 5.2.2\r\n\r\nTitanium CLI :\r\n CLI Version = 5.0.6\r\n node-appc Version = 0.2.31\r\n\r\nTitanium SDK :\r\n 5.2.2.GA\r\n Version = 5.2.2\r\n", "comment": { "comments": [ { "id": "385705", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I tested the below code following your provided steps. \r\n{code}\r\nvar stringArray = [ 'Appcelerator', 'Titanium', 'HelloWorld', 'Hello', 'World' ];\r\n\r\nvar win = Ti.UI.createWindow({\r\n\r\n title : 'LabelTest',\r\n\r\n backgroundColor : '#fff'\r\n\r\n});\r\n\r\nvar wrapperView = Titanium.UI.createView({\r\n height : Ti.UI.SIZE,\r\n width : \"98%\",\r\n layout : 'horizontal',\r\n backgroundColor:'red',\r\n //top : \"0\",\r\n horizontalWrap : true,\r\n});\r\n\r\nwin.add(wrapperView);\r\n\r\nfor ( i = 0; i < stringArray.length; i++) {\r\n\r\n var labelView = Titanium.UI.createView({\r\n width : Titanium.UI.SIZE,\r\n height : \"22dp\",\r\n borderRadius : \"11dp\",\r\n backgroundColor : \"#0080B0\",\r\n left : \"6dp\",\r\n bottom:\"5dp\"\r\n });\r\n\r\n var label = Titanium.UI.createLabel({\r\n text : stringArray[i],\r\n textAlign : \"left\",\r\n height : \"20dp\",\r\n width : Titanium.UI.SIZE,\r\n wordWrap : false,\r\n ellipsize : false,\r\n font : {\r\n fontSize : \"13dp\"\r\n },\r\n color : \"#FFF\",\r\n });\r\n\r\n labelView.add(label);\r\n\r\n wrapperView.add(labelView);\r\n}\r\n\r\nwin.open();\r\n{code}\r\n\r\nI don't not see any out of the ordinary behavior. Horizontal view wrap the views inside horizontal view properly without cropping the label. See the screenshot. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-05-13T21:38:56.000+0000", "updated": "2016-05-13T21:38:56.000+0000" }, { "id": "385732", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI have found that view is getting horizontally wrapped properly on Android platform for the given code. I tried alloy project given in the issue attachment.\r\n\r\nOUTPUT : [Screenshot|https://i.imgsafe.org/180f67c.png]\r\n\r\nThanks\r\n\r\n*Environment*:\r\n\r\n*Device info:* Htc One(android 4.4.3)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.2.2.GA and 5.2.1.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-15T06:51:52.000+0000", "updated": "2016-05-15T06:51:52.000+0000" }, { "id": "385752", "author": { "name": "nikeshmahajan", "key": "nikeshmahajan", "displayName": "Nikesh Vasant Mahajan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\n@Nazmus Salahin:\r\nThank you for sharing that information on Android devices.\r\n\r\n@Sharif AbuDarda :\r\nCan you please check this issue on iPhone devices (iPhone - 4/5/5S/6). And Please use the following array.\r\n\r\nvar stringArray = [\"Gmail Account\", \"Yahoo Account\", \"Skype Account\", \"Linc Account\", \"Appcelerator Account\", \"Microsoft Account\",\"Gmail Account\", \"Yahoo Account\", \"Skype Account\", \"Linc Account\", \"Appcelerator Account\", \"Microsoft Account\"];\r\n\r\n", "updateAuthor": { "name": "nikeshmahajan", "key": "nikeshmahajan", "displayName": "Nikesh Vasant Mahajan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-16T05:02:58.000+0000", "updated": "2016-05-16T05:02:58.000+0000" }, { "id": "385912", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I can see the horizontally wrapped is not working for iOS platform with the given word set. \r\n\r\n{code}\r\nvar stringArray = [\"Gmail Account\", \"Yahoo Account\", \"Skype Account\", \"Linc Account\", \"Appcelerator Account\", \"Microsoft Account\",\"Gmail Account\", \"Yahoo Account\", \"Skype Account\", \"Linc Account\", \"Appcelerator Account\", \"Microsoft Account\"];\r\n{code}\r\n\r\nThe same property works fine for Android, When the worde needs multiple lines to display. In iOS the words gets cutdown which are at the corner of the line. \r\n\r\n[Screenshots|http://tinypic.com/view.php?pic=287hm5y&s=9#.VztAkGaeT8U]\r\n\r\nTested with SDK: 5.2.2.GA, Appcelerator Command-Line Interface, version 5.2.2 , iPod 5G(9.2). This is a valid bug in IOS. \r\n\r\nRegards,\r\nSharif.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-05-17T16:04:06.000+0000", "updated": "2016-05-17T16:04:27.000+0000" }, { "id": "402245", "author": { "name": "appsol", "key": "appsol", "displayName": "Muhammad Qasim", "active": true, "timeZone": "Asia/Karachi" }, "body": "I am having the exact same problem but I think I'll have to forget about it. May be it'll fix in *_\"undefined\"_* years.", "updateAuthor": { "name": "appsol", "key": "appsol", "displayName": "Muhammad Qasim", "active": true, "timeZone": "Asia/Karachi" }, "created": "2016-11-30T07:43:36.000+0000", "updated": "2016-11-30T07:43:36.000+0000" }, { "id": "405815", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8805", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-31T04:02:36.000+0000", "updated": "2017-01-31T04:02:36.000+0000" }, { "id": "407132", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Tested using:\r\nMacOS 10.12 (16A323)\r\nStudio 4.8.1.201701192045\r\nTi SDK 6.1.0\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nAlloy 1.9.6\r\nXcode 8.3 (8W120l)\r\n\r\nTested the provided sample code, ran our layout test suites, KitchenSink tests around layout, and any local projects I had that modified layouts in any way. No errors encountered", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-15T23:09:01.000+0000", "updated": "2017-02-15T23:09:01.000+0000" }, { "id": "407186", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified in SDK build 6.1.0.v20170215164209", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-16T14:17:32.000+0000", "updated": "2017-02-16T14:17:32.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }