Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13334] iPhone: Webview not bouncing/displaying correctly

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-20T23:13:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios
ReporterSurajit Biswas
AssigneeEric Merriman
Created2013-03-28T11:43:22.000+0000
Updated2017-06-20T23:13:48.000+0000

Description

Hello, I have created one simple web view which load one image from its resource directory using url property of web view. Here I set the background color of web view to yellow and height is 50%. Problem is if I scroll down the web view I can see the yellow color at the end of the image view. This is only happening in ios but in android it is not happening. This is not bouncing effect in iPhone. I have added the screen shots and the sample code. You can find my code in FirstView.js file.
	var self = Ti.UI.createView();
	
	//label using localization-ready strings from <app dir>/i18n/en/strings.xml
	var webview = Titanium.UI.createWebView({
		left : 0,
		right: 0,
		bottom: 0,
		backgroundColor : "yellow",
		top : 0,
		
		width : "100%",
		height : '50%',
	});
	if (Ti.Platform.osname == 'android') {
		webview.url = '../../1.jpg';
	} else {
		webview.url = '1.jpg';
	}
	self.add(webview);
	
	
	
	return self;

Attachments

FileDateSize
Android_Emulator-2013-03-28-170012.png2013-03-28T11:43:22.000+000061624
iOS Simulator Screen shot 28-Mar-2013 4.55.30 PM.png2013-03-28T11:43:22.000+000064987
SampleWebView.zip2013-03-28T11:43:22.000+00003123914

Comments

  1. Lee Morris 2017-06-20

    I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source