Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16859] Android: View inside ScrollView does not scroll horizontally when horizontalWrap property is set as true

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-08-08T13:33:01.000+0000
Affected Version/sRelease 3.2.3
Fix Version/sn/a
ComponentsAndroid
Labelsparity, qe-3.2.3
ReporterPriya Agarwal
AssigneeIngo Muschenetz
Created2014-04-17T11:23:54.000+0000
Updated2017-03-21T21:41:17.000+0000

Description

View inside ScrollView does not scroll horizontally when horizontalWrap property is set as true. Step to reproduce: 1.Copy Paste below code in app.js 2. Run the app. Actual Result: ScrollView does not scroll horizontally. Expected Result: ScrollView should scroll horizontally.
var win=Ti.UI.createWindow({});

var ScrollView = Ti.UI.createScrollView({
	height : 120,
	width : Ti.UI.FILL,
	contentWidth : 'auto',
	backgroundColor : "#a9a9a9",
	scrollType : 'horizontal',
	layout : 'horizontal',
	//horizontalWrap:'false' // Uncommenting this line make scrollView scroll
}); 
win.add(ScrollView);

for (var i = 0; i < 10; i++) {
	var tile = Ti.UI.createView({
		backgroundColor : 'red',
		top : 10,
		height : 100,
		left : 10,
		width : 90
	});

	ScrollView.add(tile);
}

win.open();

Note:Its is not a regression. And it is working fine on iOS.Verified with Iphone5(v7.1)

Comments

  1. jithinpv 2014-08-08

    cannot reproduce Titanium Studio, build: 3.3.0.201407100905 Titanium SDK version 3.3.0.GA CLI version 3.3.0, device: HTC Desire X (HT35XLY01791) Targeting Android SDK: 20
  2. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source