KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm creating a graphical scrollbar so I need to calculate the scrollbar height manually. You know how in most applications the scrollbar height changes based on how much there is to scroll? What is the formula for calculating the scrollbar height based on the amount of hidden contents? Is it logarithimic or exponential or just plainly based on the percentage of contents visible vs contents hidden? These are my input variables: Visible area - eg. 100 px Content height - eg. 1000 px Max scrollbar height - eg. 500 px This is what I want to calculate: Scrollbar height - eg. 50 px??
Tags (comma-separated)
Save Edits
Cancel