Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2763] iOS Bug 1.5.1 - webViews get extra bottom padding when the orientation changes

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionHold
Resolution Date2011-04-15T03:28:57.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsapple, bug, defect, ios, reported-1.5.1, scrollview, webview
ReporterRick Blalock
AssigneeBlain Hamon
Created2011-04-15T03:28:56.000+0000
Updated2017-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

Comments

  1. Blain Hamon 2011-04-15

    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.

  2. Lee Morris 2017-03-07

    Closing ticket due to time passed.

JSON Source