Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3260] Android: support scale to fit for webview

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:01:19.000+0000
Affected Version/sn/a
Fix Version/sSprint-2011-09
ComponentsAndroid
Labelsandroid, feature, fit, release-1.7.0, reported-1.5.0, rplist, scale, to, webview
ReporterOpie Cyrus
AssigneeOpie Cyrus
Created2011-04-15T03:40:40.000+0000
Updated2011-04-17T02:01:19.000+0000

Description

Add in support for scale to fit on a webview. Requires SDK level 7.

Comments

  1. Opie Cyrus 2011-04-15

    Spawned from #1540

  2. Opie Cyrus 2011-04-15

    (from [a121e27899f7025975db30aa62fa9c6e559e628b]) [#3260 stae:fixed-in-qa] update webview to support scalePageToFit for Android

    webview now correctly supports the scalePageToFit property in Android
    https://github.com/appcelerator/titanium_mobile/commit/a121e27899f7025975db30aa62fa9c6e559e628b"> https://github.com/appcelerator/titanium_mobile/commit/a121e27899f7...

  3. Opie Cyrus 2011-04-15

    This change can be verified in KS via the Base UI->Views->Web Views->Image Url test. Upon launch, you should see the screen zoomed out all the way in order to display the entire image. In the same test, if you call set scalesPageToFit to false on the webview, the image should be be only partially shown.

    Default setting which matches iOS is for scalesPageToFit to be set to true.

  4. Natalie Huynh 2011-04-15

    Tested with Titanium SDK version: 1.7.0 (03/04/11 12:06 87eb210) on
    Galaxy Tab 2.2
    Emulator 2.1
    iPhone 4 OS 4.2.1

JSON Source