{ "id": "174594", "key": "AC-6463", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2019-12-30T01:03:50.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-01T21:46:14.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "This is a weird one, but also a major issue for me as I use WebViews heavily in an existing app to render html content from epub files etc.\r\n\r\nI have simplified this down to the following code to demonstrate the issue.\r\n\r\nThe first example works ok, no matter what orientation...\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar html = '';\r\nhtml += '';\r\nhtml += '';\r\nhtml += '';\r\nhtml += '
Text does not resize :)
';\r\nhtml += '';\r\n\r\nvar webview = Ti.UI.createWebView({\r\n html: html\r\n});\r\n\r\nwin.add(webview);\r\n\r\nwin.open();\r\n{code}\r\n\r\nHowever if I change the code to include a link, then suddenly when the device is rotated, the text size does change - it gets larger in landscape...\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar html = '';\r\nhtml += '';\r\nhtml += '';\r\nhtml += '';\r\nhtml += '
linkText suddenly resizes :(
';\r\nhtml += '';\r\n\r\nvar webview = Ti.UI.createWebView({\r\n html: html\r\n});\r\n\r\nwin.add(webview);\r\n\r\nwin.open();\r\n{code}\r\n\r\nI have verified that this is an issue on the simulator for iOS 13.3 and 12.4 and a real device (iPhone XS Max, iOS 13.3).", "attachment": [], "flagged": false, "summary": "Rotating iPhone resizes text in WebView if there is an tag", "creator": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "subtasks": [], "reporter": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "environment": "Ti SDK 8.3.0.GA, iOS 13.3", "comment": { "comments": [ { "id": "453334", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "This should be fixed by adding\r\n{code}\r\nbody {\r\n -webkit-text-size-adjust: none;\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-12-30T07:39:22.000+0000", "updated": "2019-12-30T07:39:22.000+0000" }, { "id": "453419", "author": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "body": "Fix verified as working perfectly. Thanks Michael.", "updateAuthor": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2020-01-01T21:46:14.000+0000", "updated": "2020-01-01T21:46:14.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }