Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13298] iOS: Paging Control in the ScrollableView is failing to show the current status of the page

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-06T16:37:10.000+0000
Affected Version/sRelease 3.0.2
Fix Version/sRelease 3.1.0
ComponentsiOS
LabelsSupportTeam, module_scrollableview, qe-testadded, triage
ReporterMauro Parra-Miranda
AssigneeMax Stepanov
Created2013-04-01T19:29:06.000+0000
Updated2013-09-30T08:58:17.000+0000

Description

Problem Description

in the ScrollableView, the dots show and lights correctly but NOT if it's selected the last view. In this case the last dot lights but then returns to the previous one.

Steps to reproduce

1. Create new mobile project 2. Add this code to app.js:
var win = Ti.UI.createWindow({backgroundColor:'white',});

var matchView = Ti.UI.createView({ 
    layout:'vertical',
    backgroundColor:'red',
});
var voteView = Ti.UI.createView({ 
    layout:'vertical',
    backgroundColor:'blue'
});
var tacticsView = Ti.UI.createView({ 
    layout:'vertical',
	backgroundColor:'yellow',
});
var cont = Ti.UI.createScrollableView({
    top:'3%',
    bottom:'3%',
    right:'3%',
    left:'3%',
    borderRadius:8,
    backgroundColor:'white',
    views:[matchView,voteView,tacticsView],
    showPagingControl:true
});
win.add(cont);
win.open();
3. Scroll to the right, and when yuou reach to the last view in the scrollableview, the pager will show the previous one, even if the view is the right one.

Extra info

http://developer.appcelerator.com/question/150306/pagingcontrol-dots-behave-uncorrectly

Comments

  1. Eric Merriman 2013-04-02

    Unable to reproduce in simulator or on iPhone 5 6.1 with the following configuration: Mac OS 10.8.3 SDK: 3.1.0.v20130402092426 Appcelerator Studio, build: 3.1.0.201303312320 CLI 3.1.0-beta node-appc 1.0.29-beta
  2. Eric Merriman 2013-04-02

    Verified fail behavior with simulator and on iPhone 5 6.1 with the following configuration: Mac OS 10.8.3 SDK: 3.0.2.GA Appcelerator Studio, build: 3.1.0.201303312320 CLI 3.1.0-beta node-appc 1.0.29-beta
  3. Ingo Muschenetz 2013-04-06

    Based on Eric's description, marking as fixed in 3.1.0
  4. Anshu Mittal 2013-04-08

    Tested with: SDK: 3.1.0.v20130405170202 Studio:3.1.0.201304011603 Device: iPhone5(v 6.0) OS: OSX 10.7.5 Works as expected.

JSON Source