{ "id": "155177", "key": "TIMOB-20482", "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-05-06T14:36:01.000+0000", "created": "2016-02-27T01:21:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "merge-6.1.0", "webview" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-09T16:39:22.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": "h3. I am loading content into a WebView container using both setUrl and setHtml. Both methods seem to be adding additional lines based on the number of spaces found (seems to be inconsistent). A workaround was to convert the spaces to  , but then word wrap did not work correctly.\n\nAttached zip containing examples.\n\n", "attachment": [ { "id": "61861", "filename": "Screen Shot 2017-03-15 at 1.55.38 PM.png", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-15T21:06:52.000+0000", "size": 44945, "mimeType": "image/png" }, { "id": "58352", "filename": "webview_example.zip", "author": { "name": "findawebguy", "key": "findawebguy", "displayName": "Michael Thornton", "active": true, "timeZone": "America/New_York" }, "created": "2016-02-27T01:21:02.000+0000", "size": 1205, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: WebView converting spaces into extra lines", "creator": { "name": "findawebguy", "key": "findawebguy", "displayName": "Michael Thornton", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "findawebguy", "key": "findawebguy", "displayName": "Michael Thornton", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 883, "state": "closed", "name": "2017 Sprint 09 SDK", "startDate": "2017-04-23T21:46:54.309Z", "endDate": "2017-05-07T21:46:00.000Z", "completeDate": "2017-05-08T00:25:44.276Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "378058", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "I have tested this issue on Android and IOS. I have loaded content into a WebView container using both setUrl and setHtml. In either case, no additional line added based on number of spaces. The issue is not reproducible.\r\n\r\n{code}\r\nsenderMessage.setUrl(\"spaces.html\");\r\n//senderMessage.setHtml(\"This is a test\");\r\nsenderMessage.setHeight(Ti.UI.SIZE); \r\n \r\nmoreMessage.setUrl(\"more_spaces.html\");\r\n//moreMessage.setHtml(\"This is a test That is a test That is a test\");\r\nmoreMessage.setHeight(Ti.UI.SIZE); \r\n{code}\r\n \r\n[Screenshot image link|http://postimg.org/image/d7np93n4j/]\r\n\r\n*Environment*:\r\n{code}\r\n*Device info:* Nexux7 (android 6.0.1)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.2.0.v20160220080449 and 5.1.2.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n\r\nAnd :\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.9.5\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.2.0.GA\r\n SDK Path = /Users/gsl-mac-mini-08/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA\r\n Target Platform = iphone\r\n{code}\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-28T06:10:48.000+0000", "updated": "2016-02-28T14:58:30.000+0000" }, { "id": "378087", "author": { "name": "findawebguy", "key": "findawebguy", "displayName": "Michael Thornton", "active": true, "timeZone": "America/New_York" }, "body": "First, thanks for the quick reply. Much appreciated to see such great developer support!\r\n\r\nI created a new project using the 5.2.0 GA SDK to make sure my app was not causing an issue. I tested this using Genymotion Google Nexus 6 - 5.1.0 - API 22 and it appeared ok. When I tested using iOS simulator in Appcelerator Studio for the iPad 2 and iPhone 6 it was still an issue. I also tested on an iPad Air 2 and it was still an issue. I have multiple users that are experiencing the issue on their individual iPad's. It looks like it may just be an iOS issue. Can you verify using the iOS simulator for iPad 2 in Appcelerator?\r\n\r\nHow do I compare my environment settings with settings that were posted? Maybe I need an update. I am running OS X with the most recent update of Appcelerator. I just updated on 2/27/2016 and when I check for updates Appcelerator studio says I am current.\r\n\r\n", "updateAuthor": { "name": "findawebguy", "key": "findawebguy", "displayName": "Michael Thornton", "active": true, "timeZone": "America/New_York" }, "created": "2016-02-28T20:11:32.000+0000", "updated": "2016-02-28T20:11:32.000+0000" }, { "id": "412469", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce the issue. It looks either it is fixed in this version or it may be some problem with iOS version. [~ewieber] Can you please verify it .", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-15T07:08:33.000+0000", "updated": "2017-03-15T07:08:33.000+0000" }, { "id": "412624", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue, using:\r\nMacOS 10.12 (16A323)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.2.GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nAlloy 1.9.5\r\nXcode 8.2.1 (8C1002)\r\niOS 10 iPhone 6 sim\r\n\r\nUsing the provided example I see the extra spaces after the text in the html files. See the attached image.\r\n!Screen Shot 2017-03-15 at 1.55.38 PM.png|thumbnail!", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-15T21:06:26.000+0000", "updated": "2017-03-16T15:39:28.000+0000" }, { "id": "413476", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks [~ewieber] .\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/8892", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T08:29:22.000+0000", "updated": "2017-03-17T08:29:22.000+0000" }, { "id": "416120", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue mentioned in this ticket is due to one change while fixing TIMOB-11777.\r\nProbable test case which [~ssekhri] has given me for the ticket TIMOB-11777 ( It was verified by him in early 2013 :) ) -\r\n\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar webview = Ti.UI.createWebView({\r\n\r\n width:Ti.UI.SIZE,\r\n\r\n height:Ti.UI.SIZE,\r\n\r\n html:'200 px height, 100 px width.'\r\n\r\n});\r\n\r\nwin.add(webview);\r\n\r\nwin.open();\r\n{code}\r\n\r\nit is also working fine with above PR.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T08:28:03.000+0000", "updated": "2017-03-29T08:29:14.000+0000" }, { "id": "418996", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Backport for 6.1.0 please", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-03T07:28:02.000+0000", "updated": "2017-05-03T07:28:02.000+0000" }, { "id": "419077", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Backported PR (6_1_X): https://github.com/appcelerator/titanium_mobile/pull/9012", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-04T03:52:33.000+0000", "updated": "2017-05-04T03:52:33.000+0000" }, { "id": "419095", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed, using:\r\nMacOS 10.12 (16A323)\r\nStudio 4.9.0.201704061825\r\nTi SDK 6.1.0\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.0\r\nAlloy 1.9.11\r\nXcode 8.3.2 (8E2002)\r\n\r\nNo additional lines were shown when setting the webview to a local file, using setHTLP or setURL. Tested using the provided sample with modifications.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-04T15:13:47.000+0000", "updated": "2017-05-04T15:13:47.000+0000" }, { "id": "419370", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing. Verified in builds:\r\n6.1.0.v20170504081641\r\n6.2.0.v20170507073539", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-09T16:39:22.000+0000", "updated": "2017-05-09T16:39:22.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }