[TIMOB-3260] Android: support scale to fit for webview
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:01:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint-2011-09 |
Components | Android |
Labels | android, feature, fit, release-1.7.0, reported-1.5.0, rplist, scale, to, webview |
Reporter | Opie Cyrus |
Assignee | Opie Cyrus |
Created | 2011-04-15T03:40:40.000+0000 |
Updated | 2011-04-17T02:01:19.000+0000 |
Description
Add in support for scale to fit on a webview. Requires SDK level 7.
Spawned from #1540
(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...
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.
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