Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16204] Android: ScrollView: App crashes while scrolling horizontally having views and webviews in scrollview

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-01-21T18:55:37.000+0000
Affected Version/sRelease 3.2.1
Fix Version/s2014 Sprint 02, 2014 Sprint 02 Core, Release 3.2.1, Release 3.3.0
ComponentsAndroid
Labelsmodule_scrollView, qe-3.2.1, qe-testadded, regression, triage
ReporterParas Mishra
AssigneeAllen Yeung
Created2014-01-16T07:09:54.000+0000
Updated2014-01-22T21:13:08.000+0000

Description

Android: ScrollView: App crashes while scrolling horizontally having views and webviews in scrollview This is regression. It is reproducible on SDK: 3.2.0.GA as well. It works fine on SDK:3.1.3.GA Steps to reproduce: 1. Run the app.
var win = Ti.UI.createWindow({
	backgroundColor: '#fff'
});
var scrollView = Titanium.UI.createScrollView({
		    contentHeight : 'auto',
		    layout : 'horizontal',
		    horizontalWrap: 'false',
		    backgroundColor : 'transparent',
		    scrollType : 'horizontal'
		});
		  
		//Add to scrollView
		for (var i = 0; i < 20; i++) {
		    scrollView.add(Titanium.UI.createView({
		        height : 85,
		        width : 50,
		        backgroundColor : 'blue',
		        left : 10,
		        borderRadius : 6
		    }));
		  
		}
		  
		//Add webView -- causes scrollView to scroll down
		var webView = Ti.UI.createWebView({
		    touchEnabled : false,
		    showScrollbars : false,
		    scrollType : 'vertical',
		    willHandleTouches : false,
		    backgroundColor : 'red',
		    scrollable : false,
		    left : 10,
		    height : 40
		});
		  
		scrollView.add(webView);
		  
		win.add(scrollView);
		win.open();

2. Scroll horizontally Expected: Should see a webView with red rectangle Actual: App crashes on scrolling

Comments

  1. Allen Yeung 2014-01-21

    Master: https://github.com/appcelerator/titanium_mobile/pull/5240 3_2_X: https://github.com/appcelerator/titanium_mobile/pull/5241
  2. Samuel Dowse 2014-01-22

    Verified fixed on: Mac OSX 10.9.1 Appcelerator Studio, build: 3.2.1.201401201818 Titanium SDK, build: 3.2.1.v20140121132444 CLI: 3.2.1 (git://github.com/appcelerator/titanium.git#3_2_X) Android Emulator: 2.3.3 Scrolling horizontally did not crash or freeze the app. Closing.

JSON Source