Micusoft / mobiscroll

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

formatResult() stops custom wheels from beging set correctly on open #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use "custom wheels" and the formatResult() event.
Like this, (I've also attached the demo, modified to show it...)

            var group = {};
            var wheels = [group];
            for (var i = 1; i < 4; i++) {
                var wheel = {};
                for (var j = 0; j < 100; j++) {
                    wheel[j] = (j % 5 + 1);
                }
                group['Fruit ' + i] = wheel;
            }

            $('#custom').scroller({
                width: 90,
                wheels: wheels,
                formatResult:function(){
                    return 'a fruit';
                }
            });

What is the expected output? What do you see instead?
Expected have the wheels start at the set value, instead they start at the 
beginning of the wheel (lowest value).

What version of the product are you using? On what operating system?
Mac - FF8, Chrome, Android
MobiScroll 1.5.2

You guys ROCK, this really great!

Original issue reported on code.google.com by zachary....@gmail.com on 8 Dec 2011 at 12:12

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by diosla...@gmail.com on 3 Jan 2012 at 8:48

GoogleCodeExporter commented 8 years ago
Fixed in 1.5.3

Original comment by diosla...@gmail.com on 3 Jan 2012 at 10:09