Skip to main content

slider_spec

Function slider_spec 

Source
pub fn slider_spec(m: &Metrics) -> NodeSpec
Expand description

The stock slider’s spec: a row as wide as a menu and as tall as its thumb, padded by half the thumb on either side so the thumb’s centre is under the pointer at both ends — the content box is the track the core reads a press along. A caller sizing its own slider changes the width and keeps the padding.