{ "id": "88808", "key": "TIMOB-8298", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-20T21:52:40.000+0000", "created": "2012-03-25T16:23:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_webview", "qe-testadded", "regression" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "23230", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "105766", "key": "TIMOB-11910", "fields": { "summary": "iOS: WebView - rendering issue after remote URL is opened", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-12-20T21:52: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Webview in scrollview does not display correct width and height, when orientation changed. It works in 1.8.0.1, 1.8.1, but fails 1.8.2 and later.\r\n\r\nSteps to reproduce:\r\n\r\nRun the following code.\r\nScroll to the 2nd page which is google\r\nRotate the screen to landscape\r\nRotate to portrait, and the webview does not resize itself correctly\r\n\r\n{code}\r\n var win1 = Titanium.UI.createWindow({ \r\n backgroundColor:'white'\r\n});\r\n\r\nwin1.orientationModes = [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT];\r\n\r\nvar webview1 = Ti.UI.createWebView({\r\n url: 'http://www.appcelerator.com'\r\n});\r\n\r\n\r\nvar webview2 = Ti.UI.createWebView({\r\n url: 'http://www.google.com',\r\n scalesPageToFit:true\r\n});\r\n\r\nvar webview3 = Ti.UI.createWebView({\r\n url: 'http://www.apple.com'\r\n});\r\n\r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views: [webview1, webview2, webview3]\r\n});\r\n\r\nwin1.add(scrollableView);\r\n\r\nwin1.open();\r\n\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Webview in scrollview does not have correct widhth/height after orientation change", "creator": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Product: Mobile\r\nTitanium SDK: Mobile CI\r\nPlatform OS: iOS", "comment": { "comments": [ { "id": "188727", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tangentially related, we should discourage developers from this practice of having a web view or table view inside a scroll view or scrollable view. As per [Apple|https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIWebView_Class/Reference/Reference.html]:\r\n{quote}\r\nImportant You should not embed UIWebView or UITableView objects in UIScrollView objects. If you do so, unexpected behavior can result because touch events for the two objects can be mixed up and wrongly handled.\r\n{quote}\r\nIn other words, even with this fixed, it is a very BAD idea to use web views inside a scrollable view.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T16:47:43.000+0000", "updated": "2012-03-26T16:47:43.000+0000" }, { "id": "188992", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.0.0.201203271933\r\nTi Mobile SDK 2.0.0.v20120328000206 hash r7985dee6\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1\r\n\r\nVerified that the webview was resized correctly ", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T09:05:06.000+0000", "updated": "2012-03-28T09:05:06.000+0000" }, { "id": "188993", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add tags", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T09:05:22.000+0000", "updated": "2012-03-28T09:05:22.000+0000" }, { "id": "189828", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T10:01:34.000+0000", "updated": "2012-04-04T10:01:34.000+0000" }, { "id": "229160", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pinch/Zoom of a page cause it not to scale properly after rotation.\r\nSame behavior in 2.1.4\r\nTest steps:\r\n1 Run the above code\r\n2 Pinch/zoom a web view\r\n3 Rotate device\r\n\r\nActual result:\r\npage is not scaled to fit the screen\r\n\r\nTested on:\r\nTitanium Studio, build: 3.0.0.201211281826\r\nTitanium SDK, build: 3.0.0.v20121128173200\r\nDevices:\r\niPad mini iOS 6.0.1\r\niPad4 iOS 6.0", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-29T23:40:11.000+0000", "updated": "2012-12-20T21:22:20.000+0000" }, { "id": "232224", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing, behavior as expected.\nTested on:\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK, build: 3.1.0.v20121220122601\nTitanium SDK, build: 3.0.1.v20121218130634\nMacBookPro 10.8.2 Mountain Lion\nXCode 4.5.2\nDevice:\niPhone5 iOS 6.1\niPad mini 6.0.2", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-20T21:52:31.000+0000", "updated": "2012-12-20T21:52:31.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }