[TIMOB-2763] iOS Bug 1.5.1 - webViews get extra bottom padding when the orientation changes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Hold |
Resolution Date | 2011-04-15T03:28:57.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | iOS |
Labels | apple, bug, defect, ios, reported-1.5.1, scrollview, webview |
Reporter | Rick Blalock |
Assignee | Blain Hamon |
Created | 2011-04-15T03:28:56.000+0000 |
Updated | 2017-03-07T19:41:51.000+0000 |
Description
When a webView, added to a scrollview, changes orientation there is a lot of extra padding added to the inside of the webView. Verified on 1.5.1
Original Ticket: http://developer.appcelerator.com/helpdesk/view/63311">http://developer.appcelerator.com/helpdesk/view/63311
This is an Apple issue. Namely, the only we we can divine height needed by the web page is evaluating "document.height" in the UIWebView. The problem is that document.height reports the maximum of the visible height of the web view or the maximum height needed by the document.
In other words, if the document requires 300 pixels and the webview is 200 pixels tall, 'auto' reports 300 pixels, the height of the document. HOWEVER, if the webview is 400 pixels tall, and the document requires 300 pixels, 'auto' will report 400 pixels.
There's not much we can do about it, beyond to advise to not rely on auto.
Closing ticket due to time passed.