That fixed the placement. Thanks.

Any suggestions on how to switch the scroll direction?

So when I pull down, the content goes up? Obvious noob here...

Thanks.
Dave

On Oct 26, 7:07 am, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> The default value is 0, and a slider with vertical orientation is defined to
> have min at the bottom and max at the top, so just set the value to the max
> at init
>
> ...
> value: maxScroll
> ...
>
> - Richard
>
> On Sun, Oct 25, 2009 at 8:19 PM, dave.mer...@gmail.com <
>
> dave.mer...@gmail.com> wrote:
>
> > My slider is currently starting at the bottom of the div. I'd like it
> > to start at the Top of the div and when I pull down, slide my content
> > up.
>
> > I have looked on the list... I'm hoping that this example can be a
> > little bit simpler.
>
> > Any suggestions would be very helpful
>
> > Here's my code:
>
> >    var scrollBlock = $('.contentViewer').height();
> >    var displayBlock = $('.contentBlock').height();
> >    var maxScroll = scrollBlock - displayBlock;
>
> >    if (scrollBlock <= displayBlock) {
> >        $('#slider').hide();
> >    } else {
> >        $("#slider").slider({
> >                                orientation: "vertical",
> >                                min: 0,
> >                                max: maxScroll,
> >                    slide: function (ev, ui) {
> >                        $('.contentViewer').css('top', '-' + ui.value
> > + 'px');
> >                    },
> >        });
> >    };
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to