{ "id": "111885", "key": "TIMOB-13261", "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": "15113", "description": "2013 Sprint 08 BB", "name": "2013 Sprint 08 BB", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15106", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-09T23:06:51.000+0000", "created": "2013-03-28T23:06:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded", "sdk-bb" ], "versions": [], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44: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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "h3. Test Case\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n text : 'Label äöüÄÖÜ'\r\n});\r\nwin.add(label);\r\n\r\nvar textField = Ti.UI.createTextField({\r\n value : 'TextField äöüÄÖÜ '\r\n});\r\nwin.add(textField);\r\n\r\nwin.open();\r\n{code}\r\n\r\nExpected: Both the label and text field should properly display the German unicode text.\r\nActual: Garbage characters are drawn instead.\r\n", "attachment": [], "flagged": false, "summary": "BlackBerry: TextField and Label are not displaying German umlauts", "creator": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "246644", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there a test case we can reproduce the issue? Is this with typing or using textField.setValue(someText)?", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-09T16:54:03.000+0000", "updated": "2013-04-09T16:54:03.000+0000" }, { "id": "246648", "author": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "body": "Josh, here is my example from [appc-ti-mobile-blackberry Group|https://groups.google.com/forum/?fromgroups=#!topic/appc-ti-mobile-blackberry/1_w7rivtmt0]\r\n\r\n\r\nI reported some more issues in this group post, so here's my complete comment:\r\n\r\n{quote}\r\nHi Russ,\r\n\r\nI wrote a litte test app for testing Label wordwrap and realized even more stuff not working.\r\n\r\nI tested this on BB10 Simulator, BB10 Dev Alpha B and iOS Simulator.\r\nOn iOS Simulator everything works as expected, but not on BB10 side.\r\n\r\nThis is what is not working properly:\r\n1. German Umlauts are not displayed correctly in Ti.UI.Label and Ti.UI.TextField.\r\n2. wordwrap don't work (we know that)\r\n3. backgroundColor for Ti.UI.TextField don't work\r\n4. Ti.UI.ScrollView EventListener(\"click\") gets fired if I attempt to scroll the ScrollView\r\n5. In Ti.UI.ScrollView EventListener(\"click\") I can not access \"e.source\" and \"e.source.myRowIndex\"\r\n6. for Ti.UI.ScrollView I have to set ContentHeight explicit, because 'auto' don't work\r\n{quote}\r\n\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'darkgray'\r\n});\r\n\r\nTi.API.info('Ti.Platform.displayCaps.density: ' + Ti.Platform.displayCaps.density);\r\nTi.API.info('Ti.Platform.displayCaps.dpi: ' + Ti.Platform.displayCaps.dpi);\r\nTi.API.info('Ti.Platform.displayCaps.platformHeight: ' + Ti.Platform.displayCaps.platformHeight);\r\nTi.API.info('Ti.Platform.displayCaps.platformWidth: ' + Ti.Platform.displayCaps.platformWidth);\r\n\r\n/* iPhone Simulator\r\n [INFO] Ti.Platform.displayCaps.density: medium\r\n [INFO] Ti.Platform.displayCaps.dpi: 160\r\n [INFO] Ti.Platform.displayCaps.platformHeight: 480\r\n [INFO] Ti.Platform.displayCaps.platformWidth: 320\r\n */\r\n/* BlackBerry Simulator BB10_0_10.261\r\n [INFO] Ti.Platform.displayCaps.density: high\r\n [INFO] Ti.Platform.displayCaps.dpi: 326.0563532730535\r\n [INFO] Ti.Platform.displayCaps.platformHeight: 1280 (392dp)\r\n [INFO] Ti.Platform.displayCaps.platformWidth: 768 (235)\r\n */\r\nvar myFontSize; \r\nif (Ti.Platform.osname === 'blackberry') {\r\n myFontSize = 8;\r\n} else {\r\n // Android, iOS\r\n myFontSize = 14;\r\n}\r\n \r\n\r\nfunction createRow(i) {\r\n var row = Ti.UI.createView({\r\n myRowIndex : i,\r\n layout : 'vertical',\r\n backgroundColor : 'darkgray',\r\n borderColor : '#bbb',\r\n // borderWidth: 1, ==> don't work for BlackBerry\r\n width : '100%',\r\n height : 65,\r\n left : 0\r\n });\r\n\r\n // invisible Label to keep a url\r\n var urlLabel = Ti.UI.createLabel({\r\n touchEnabled : false,\r\n backgroundColor : 'darkgray',\r\n color : 'darkgray',\r\n text : 'http://www.google.de',\r\n wordWrap : false,\r\n font : {\r\n fontSize : myFontSize,\r\n fontFamily : 'Helvetica Neue'\r\n },\r\n left : 5,\r\n right : 5,\r\n width : Titanium.UI.FILL,\r\n height : 5\r\n });\r\n \r\n var headerLabel = Ti.UI.createLabel({\r\n touchEnabled : false,\r\n backgroundColor : 'darkgray',\r\n color : 'white',\r\n text : 'Header Label äöüÄÖÜ ' + (i + 1) + ' with a long text to see if it can span over more than one row or not',\r\n textAlign : Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n wordWrap : true,\r\n font : {\r\n fontSize : myFontSize,\r\n fontWeight : 'bold',\r\n fontFamily : 'Helvetica Neue'\r\n },\r\n left : 5,\r\n right : 5,\r\n width : Titanium.UI.FILL,\r\n height : 37\r\n });\r\n\r\n\r\n var textField = Ti.UI.createTextField({\r\n touchEnabled : false,\r\n backgroundColor : 'darkgray',\r\n color : 'white',\r\n value : 'Text Label äöüÄÖÜ ' + (i + 1),\r\n textAlign : Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n font : {\r\n fontSize : myFontSize,\r\n fontFamily : 'Helvetica Neue'\r\n },\r\n left : 5,\r\n right : 5,\r\n width : Titanium.UI.FILL,\r\n height : 22 \r\n });\r\n\r\n var line = Ti.UI.createLabel({\r\n touchEnabled : false,\r\n backgroundColor : 'lightgray',\r\n width : '100%',\r\n height : 0.5\r\n });\r\n\r\n row.add(urlLabel);\r\n row.add(headerLabel);\r\n row.add(textField);\r\n row.add(line);\r\n\r\n return row;\r\n}\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n contentHeight : 65 * 20, //'auto',\r\n layout : 'vertical',\r\n horizontalBounce : false\r\n});\r\n\r\nvar i = 0;\r\nfor (i; i < 20; i++) {\r\n var row = createRow(i);\r\n scrollView.add(row);\r\n}\r\n\r\nscrollView.addEventListener(\"click\", function(e) {\r\n alert('source=' + JSON.stringify(e.source));\r\n alert('source.myRowIndex=' + e.source.myRowIndex);\r\n});\r\n\r\nwin.add(scrollView);\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\nHope that helps,\r\nMatthias", "updateAuthor": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-09T17:14:26.000+0000", "updated": "2013-04-09T17:14:26.000+0000" }, { "id": "246651", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Matthias! Just found that myself a few minutes ago. Added a simplified test case for this bug above.\nThe fix was pretty quick, so it should be pushed in a few minutes and available via CI and the next release.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-09T17:18:37.000+0000", "updated": "2013-04-09T17:18:37.000+0000" }, { "id": "246654", "author": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "body": "Perfect!\r\nThanks Josh.", "updateAuthor": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-09T17:23:30.000+0000", "updated": "2013-04-09T17:23:30.000+0000" }, { "id": "246766", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & the german emlauts are displays properly.\r\n\r\nEnvironment:\r\nTi Studio : 3.1.0.201304051530\r\nTi BB SDK : 3.2.0.v20130409153013\r\nMac OSX : 10.8.2\r\nwin 7 \r\nWin 8 \r\nBB simulator : 10.0.10.261\r\nZ10 device running 10.0.10.88", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-09T23:02:08.000+0000", "updated": "2013-04-09T23:06:15.000+0000" }, { "id": "246770", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to correct the ti sdk version.", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-09T23:05:50.000+0000", "updated": "2013-04-09T23:05:50.000+0000" }, { "id": "246772", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing after editing the Ti sdk version which was put wrong my me.", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-09T23:06:51.000+0000", "updated": "2013-04-09T23:06:51.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }