Slider: better measurement. added trackScaleMode to handle different ways of scaling the track within the slider bounds.