fixes thumb frame for 100% proportion
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14771 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -964,6 +964,7 @@ BScrollBar::_UpdateThumbFrame()
|
|||||||
if (fPrivateData->fScrollBarInfo.proportional)
|
if (fPrivateData->fScrollBarInfo.proportional)
|
||||||
thumbSize += (maxSize - minSize) * fProportion;
|
thumbSize += (maxSize - minSize) * fProportion;
|
||||||
thumbSize = floorf(thumbSize + 0.5);
|
thumbSize = floorf(thumbSize + 0.5);
|
||||||
|
thumbSize--;
|
||||||
|
|
||||||
// the thumb can be scrolled within the remaining area "maxSize - thumbSize"
|
// the thumb can be scrolled within the remaining area "maxSize - thumbSize"
|
||||||
float offset = floorf(((fValue - fMin) / (fMax - fMin + 1.0)) * (maxSize - thumbSize));
|
float offset = floorf(((fValue - fMin) / (fMax - fMin + 1.0)) * (maxSize - thumbSize));
|
||||||
|
|||||||
Reference in New Issue
Block a user