Here's a demo: http://jquery-ui.googlecode.com/svn/trunk/demos/slider/side-scroll.html
- Richard On Tue, Dec 8, 2009 at 8:28 AM, AJ <[email protected]> wrote: > I've got my slider working but have one extra thing I'd love to add. > > Is it possible to scale my ui-slider-handle, proportional to the > amount of scrollable content in the manner of a traditional scrollbar? > I.E. If the width of a page dictates that 50% of the content in my > scrollable layer is hidden, (my scrollbar's within a fluid layout), > I'd like my ui-slider-handle's width to be 50% of the sliders width. > > It's a simple to work out what the width of the ui-slider-handle > should be; > > $("#myslider .ui-slider-handle").width(Math.round(($ > ("#myslider_bounding").width()/$("#myslider_content").width()) > *100)+"%"); > > Where #myslider_bounding is the clipping boundary of the scrollable > content contained within myslider_content. > > My ui-slider-handle scales to the correct size but the but the length > between each 'step' needs to be recalculated after the resize of ui- > slider-handle. > > That's the bit I'm having trouble with. Has anyone tried anything > simular before, any help really appreciated. > > Ta, > > -- > > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<jquery-ui%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
