{ "id": "148966", "key": "TIMOB-19048", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-17T13:56:49.000+0000", "created": "2015-06-19T18:11:29.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-4.1.0" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-07-27T21:27:41.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen using a label, the word wrap will not work unless the height and width are set\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'red'});\r\n\r\nvar lbl = Ti.UI.createLabel({\r\n text: '*** Resources Dir: Test presence of file that exists => blahTest presence of file that does not exist => bleh*** appData Dir:Test presence of file that exists => meh Test presence of file that does not exist => merh',\r\n color: 'black'\r\n});\r\n\r\nwin.add(lbl);\r\nwin.open();\r\n{code}\r\n\r\n*Marking this as minor as it is a simple _workaround_*\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Add the above code to an existing app.js file\r\n2. Run on a device or emulator\r\n3. Add the following to the label creation {{width: Ti.UI.FILL, height: Ti.UI.FILL}}\r\n4. Run on device or emulator\r\n\r\nh5.Actual Result\r\n\r\n2. The text is not word wrapped\r\n4. The text is word wrapped\r\n\r\nh5.Expected Result\r\n\r\nThe text should be word wrapped both times", "attachment": [], "flagged": false, "summary": "Windows: Word wrap on labels does not work if width and height are not set", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 8.1\r\nAppc CLI: 4.1.0-1\r\nTi SDK: 4.1.0.v20150619100430\r\nLumia 928: 8.1\r\nWindows Phone emulator 8-1-1", "closedSprints": [ { "id": 443, "state": "closed", "name": "2015 Sprint 14 Windows", "startDate": "2015-07-06T04:01:52.896Z", "endDate": "2015-07-19T03:59:00.000Z", "completeDate": "2015-07-20T22:18:14.505Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "355812", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Bumping to 4.1.1", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-06-23T20:46:04.000+0000", "updated": "2015-06-23T20:46:04.000+0000" }, { "id": "355822", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_windows/pull/317", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-23T22:39:28.000+0000", "updated": "2015-06-23T22:39:28.000+0000" }, { "id": "356544", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Seems like in 4.1.0 beta (4.1.0.v20150626223333) a Label uses {{Ti.UI.FILL}} instead of {{Ti.UI.SIZE}} as default.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-07-01T13:33:21.000+0000", "updated": "2015-07-01T13:33:21.000+0000" }, { "id": "356632", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fokkezb] Yes, this has been fixed in latest SDK.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-01T22:54:21.000+0000", "updated": "2015-07-01T22:54:21.000+0000" }, { "id": "356686", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I saw that has been fixed in last night's build. The wordwrap has not however.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-07-02T07:27:05.000+0000", "updated": "2015-07-02T07:56:51.000+0000" }, { "id": "357829", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/380", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-16T12:18:08.000+0000", "updated": "2015-07-16T12:18:08.000+0000" }, { "id": "358379", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\nThe labels's are word wrapped.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.1.201507141126\r\nTi SDK: 4.2.0.v20150724170431\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0\r\nAPPC CLI: 4.1.2\r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows emulator : 8.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-27T21:27:34.000+0000", "updated": "2015-07-27T21:27:34.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }