Help with the formula for calculating the size of the slider for the scrolling block, relative to the height of the visible area
1 answer
The height of the slider should refer to the height of the scrollbar's working area (without buttons at the ends), as the height of the visible area refers to the height of the entire page.
ratio = Min(visibleHeight / totalHeight, 1.0); // процент видимой области thumbHeight = scrollHeight * ratio; - What will the variable scrollHeight contain and how to calculate it? - Lam
- Thank you very much for your help! - Lam
|