lopespm / mobiscroll

Automatically exported from code.google.com/p/mobiscroll
1 stars 0 forks source link

start mobiscroll from a particular number #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. var percentScroller = {};
        var percentWheels = [ percentScroller ];
        var percentWheel = {};
        var dispValue=0;
        for ( var j = 0; j < 21; j++) {
            percentWheel[j] = dispValue;
            dispValue=dispValue+5;
        }
        percentScroller['  Percentage  '] = percentWheel;
        $('.comp').scroller({
            theme : 'ios',
            mode : 'scroller',
            width : 100,
            wheels : percentWheels
        });
2. in the above code m using mobiscroll for displaying percentage at the 
interval of 5. But when i select 10 on my scroller i set this.val to 10.
3.So next time when i open the scroller the scroller highlights 50 instead it 
should highlight 10.

Is there any way we can highlight a particular value through code.

What is the expected output? What do you see instead?
Expected : when next time scroller is opened value 10 shoud be highlighted.
Instead : value 50 is highlighted

What version of the product are you using? On what operating system?
mobiscroll 1.6. Jquery Mobile 1.1

Please provide any additional information below.

Original issue reported on code.google.com by fatemaka...@gmail.com on 7 Aug 2012 at 7:48

GoogleCodeExporter commented 8 years ago
Change 

percentWheel[j] = dispValue;

to:

percentWheel[dispValue] = dispValue;

Original comment by diosla...@gmail.com on 22 Aug 2012 at 10:44