{ "id": "169016", "key": "TIMOB-24982", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-16T00:01:02.000+0000", "created": "2017-07-19T08:14:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-05-16T00:01:05.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Add the method {{zoomBy}} to Ti.UI.WebView to allow zooming the webpage.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar webView = Ti.UI.createWebView({\r\n\turl: \"http://test.de\"\r\n});\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: \"Zoom\",\r\n\tbottom: 50\r\n});\r\n\r\nbtn.addEventListener(\"click\", function(e) {\r\n\twebView.zoomBy(2);\r\n});\r\n\r\nwin.add(webView);\r\nwin.add(btn);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS/Android: Add zoomLevel to Ti.UI.WebView", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1028, "state": "closed", "name": "2018 Sprint 09 SDK", "startDate": "2018-04-22T22:53:08.928Z", "endDate": "2018-05-06T22:53:00.000Z", "completeDate": "2018-05-07T00:02:15.883Z", "originBoardId": 114 }, { "id": 1018, "state": "closed", "name": "2018 Sprint 07 SDK", "startDate": "2018-03-25T21:59:36.637Z", "endDate": "2018-04-08T21:59:00.000Z", "completeDate": "2018-04-08T17:55:14.467Z", "originBoardId": 114 }, { "id": 1034, "state": "closed", "name": "2018 Sprint 10 SDK", "startDate": "2018-05-07T00:03:21.636Z", "endDate": "2018-05-21T00:03:00.000Z", "completeDate": "2018-05-20T20:54:58.928Z", "originBoardId": 114 }, { "id": 1021, "state": "closed", "name": "2018 Sprint 08 SDK", "startDate": "2018-04-08T17:57:36.122Z", "endDate": "2018-04-22T17:57:00.000Z", "completeDate": "2018-04-22T22:51:19.120Z", "originBoardId": 114 }, { "id": 1008, "state": "closed", "name": "2018 Sprint 06 SDK", "startDate": "2018-03-11T22:18:04.396Z", "endDate": "2018-03-25T22:18:00.000Z", "completeDate": "2018-03-25T21:52:36.683Z", "originBoardId": 216 } ], "comment": { "comments": [ { "id": "424361", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR Android: https://github.com/appcelerator/titanium_mobile/pull/9226\r\n\r\niOS will follow (thanks [~hknoechel])\r\n\r\n\r\n{code:java}\r\n- (void)zoomBy:(id)value\r\n{\r\n ENSURE_SINGLE_ARG(value, NSNumber);\r\n \r\n [[(TiUIWebView *)[self view] webview] stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@\"document.body.style.zoom = %@;\", value]];\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-19T08:17:10.000+0000", "updated": "2017-07-19T08:17:10.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }