ydn-js origin

YUI version 2.5.2

Slider thumb missing ticks bug - workaround

Background

YAHOO.widget.Slider has a bug when configured to use ticks that surfaces when the slider background element position is shifted at runtime. In particular, when the window is adorned with a scrollbar.

Slider with thumb off tick mark

You can see the error and the workaround in long form on this page.

Patch

Modify the verifyOffset method on the Slider class prototype to more comprehensively update positional reference values.

Caveat: A full solution is still in development and may bear no resemblance to this workaround when it arrives.

-- aimed at adding/removing scrollbar

slider thumb