{ "id": "64045", "key": "TIMOB-3413", "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": "11333", "description": "Mobile 1.8.0 M01", "name": "Sprint 2011-22", "archived": true, "released": true, "releaseDate": "2011-06-06" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-06-03T17:30:58.000+0000", "created": "2011-04-15T03:44:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:20:32.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": "{html}

When changing orientation from landscape while a webView is\r\ninside a ScrollableView, the webView doesn't resize when returning\r\nto Portrait.

\r\n

Sample code below. Change orientation scroll through a few,\r\nchange back to Portrait. You might have to change orientation 2-3\r\ntimes to see the effect.

\r\n
\r\nvar win = Titanium.UI.currentWindow;\r\n\r\nvar views = [];\r\n\r\nfor(var i = 0; i < 25; i++) {\r\n    views.push(Ti.UI.createWebView({\r\n        html: '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>',\r\n        left: 20,\r\n        right: 20,\r\n        backgroundColor: '#eee'\r\n    }));\r\n}\r\n\r\nvar sv = Ti.UI.createScrollableView({\r\n    left: 20,\r\n    right: 20,\r\n    top: 20,\r\n    clipViews: false,\r\n    views: views    \r\n});\r\n\r\nwin.add(sv);\r\n
{html}", "attachment": [], "flagged": false, "summary": "iOS: WebView doesn't resize correctly in scrollableView on orientation change", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "130661", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Another Ticker Reference: http://developer.appcelerator.com/helpdesk/view/76610

{html}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:44:01.000+0000", "updated": "2011-04-15T03:44:01.000+0000" }, { "id": "130662", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This has become a high priority issue for LA Time shipping.\nLet's look at this as soon as we get the memory fixes in.

{html}", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:44:01.000+0000", "updated": "2011-04-15T03:44:01.000+0000" }, { "id": "130663", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Out of curiosity, when should we mention \nhttps://developer.apple.com/library/ios/#documentation/UIKit/Refere...\n, where Apple says:

\n
\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.\n
\n

Should this at least be in our docs about voiding the warranty,\nso to speak?

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:44:01.000+0000", "updated": "2011-04-15T03:44:01.000+0000" }, { "id": "130664", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "{html}

I let the customer know about this from the beginning when we\ngot the requirements from their client. There are a lot of examples\nof apps not following this out in the app store (i.e. CNN has a\nscrollview with webviews inside) - so from their perspective this\nlighthouse ticket / issue should still be fixable.

{html}", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-04-15T03:44:01.000+0000", "updated": "2011-04-15T03:44:01.000+0000" }, { "id": "130954", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "LA Times shipped. We're deferring this to 1.8.0.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-18T13:54:01.000+0000", "updated": "2011-04-18T13:54:01.000+0000" }, { "id": "134851", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Aha. I was about to mark this hold, because I can recreate it outside of titanium, without any scrollable view, but then figured we were doing things wrong. Turns out we are.\r\n\r\nhttps://developer.apple.com/library/safari/#technotes/tn2010/tn2262/_index.html\r\n\r\nThe HTML *must* have the following meta tag in order to properly size:\r\n\r\n \r\n\r\n\"But,\" you might say, \"It still scrolls to a smaller degree when rotating!\" And that is correct. The device-width is 768, but does not take into consideration that the actual webview is only 686 pixels wide. In testing, doing something akin to:\r\n\r\n \r\n\r\nSolved the test case. Because of how various html pages may be specifically crafted, WebView will not do this automatically; this is left to the end developer on how to present their page.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-03T17:27:43.000+0000", "updated": "2011-06-03T17:27:43.000+0000" }, { "id": "134852", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "See comments: Apple requires the web page have specific meta tags for the behavior desired.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-03T17:30:58.000+0000", "updated": "2011-06-03T17:30:58.000+0000" }, { "id": "157202", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Typo was above: It should have read: ", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-20T13:35:15.000+0000", "updated": "2011-06-20T13:35:15.000+0000" }, { "id": "415665", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:20:32.000+0000", "updated": "2017-03-24T18:20:32.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }