{ "id": "119381", "key": "TIMOB-15026", "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": "16092", "description": "2014 Sprint 08", "name": "2014 Sprint 08", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "16095", "description": "2014 Sprint 08 Tooling", "name": "2014 Sprint 08 Tooling", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-04-20T23:14:19.000+0000", "created": "2013-09-03T11:53:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "34886", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "119382", "key": "TIMOB-15027", "fields": { "summary": "MobileWeb: Ability to scroll if the weblink is referring to any document like pdf, word,etc", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-20T18:11:40.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h2. Description\r\nwhen we open the external url user should be able to zoom in/out the webpage.", "attachment": [], "flagged": false, "summary": "MobileWeb: Ability to zoom in/out the webpage for external url", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "269263", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Note that this issue relates to viewing pdfs and Word docs inside the webview.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-09-03T11:59:42.000+0000", "updated": "2013-09-03T11:59:42.000+0000" }, { "id": "301624", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Unfortunately, we can't do anything about this. Titanium Mobile Web uses iframes as WebViews. On iOS Mobile Safari (and possibly other mobile browsers) iframes are NOT resizable. The content is rendered 1-to-1.\r\n\r\nWe have to clamp it with a
with overflow=auto to restrict the WebView to a specific size. This also solves the problem of scrolling around the WebView.\r\n\r\nBecause the content is 1:1, Mobile Safari does not let you resize it.\r\n\r\nTurns out we can apply a scale transform to the iframe and that will resize it, but then we'd need to tie it to a pinch gesture. Unfortunately, the touch events needed for the pinch gesture are intercepted by the iframe. The parent window (the Titanium Mobile Web app) never gets the events and so we can't mimic the pinch zoom.\r\n\r\nAs a workaround, you could create zoom in/out buttons and have them apply a scale transform to your WebView's inner iframe, but that would be Mobile Web specific and extremely hacky.\r\n\r\nAnother option would be to open the URL in a new window. Unfortunately, Ti.Platform.openURL() uses a WebView, so you'd have to call the browser's built-in window.open(). Again, this is Mobile Web specific and should be wrapped in a if-block.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-20T23:14:19.000+0000", "updated": "2014-04-20T23:14:19.000+0000" }, { "id": "413866", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T18:11:40.000+0000", "updated": "2017-03-20T18:11:40.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }