Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9510] Android: ScrollableView: Scroll Arrow shown on View is in incorrect direction when app is launched with last view as starting view

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-06-15T14:19:23.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-12 API
ComponentsAndroid
Labelsapi, module_scrollableview, qe-and060112, qe-testadded, regression
ReporterSatyam Sekhri
AssigneeVishal Duggal
Created2012-06-12T22:43:05.000+0000
Updated2012-07-10T14:31:55.000+0000

Description

The scroll arrows shown on scrollable views is shown in incorrect direction on launch, when the app is launched which has the last view (of the scrollable view) as the starting view. Regression. This does not occur on 2.0.2 Steps to Reproduce: 1. Create an application with the code below 2. Launch the application 3. The blue view (which is the second view out of two views) is shown to start off Actual: A Scroll arrow is shown for few seconds in the right direction of the view, indicating next view in sequence. (Refer to attached screenshot) Expected: The Scroll arrow should be in the left direction
var win = Ti.UI.createWindow({
	backgroundColor:'white'
});
var view1 = Ti.UI.createView(
		{
			backgroundColor:'red'
		});
		var view2 = Ti.UI.createView(
		{
			backgroundColor:'blue'
		});
		var scrollView = Titanium.UI.createScrollableView(
		{
			views:[view1,view2],
			showPagingControl:true,
			pagingControlHeight:30,
			maxZoomScale:2.0,
			currentPage:1,
			height:340
		});
		var view = Ti.UI.createView(
		{
		});
		view.add(scrollView);
		
		win.add(view);
		win.fullscreen = true;
win.open();

Attachments

FileDateSize
ScrollableView_IncorrectArrow2012-06-12T22:43:05.000+000016071

Comments

  1. Michael Pettiford 2012-06-18

    Closing issue Tested with Ti Studio build 2.1.0.201206172244 Ti Mobile SDK2.1.0.v20120618134156 hash r00905cd0 OSX Lion 10.7.3 Nexus S OS 4.0.4 The expected behavior is shown

JSON Source