Style fix.
This commit is contained in:
@@ -379,7 +379,7 @@ BScrollBar::SetValue(float value)
|
|||||||
value = fMax;
|
value = fMax;
|
||||||
else if (value < fMin)
|
else if (value < fMin)
|
||||||
value = fMin;
|
value = fMin;
|
||||||
else if(isnan(value))
|
else if (isnan(value))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
value = roundf(value);
|
value = roundf(value);
|
||||||
@@ -410,7 +410,7 @@ BScrollBar::ValueChanged(float newValue)
|
|||||||
{
|
{
|
||||||
TRACE("BScrollBar(%s)::ValueChanged(%.1f)\n", Name(), newValue);
|
TRACE("BScrollBar(%s)::ValueChanged(%.1f)\n", Name(), newValue);
|
||||||
|
|
||||||
if (fTarget && newValue) {
|
if (fTarget) {
|
||||||
// cache target bounds
|
// cache target bounds
|
||||||
BRect targetBounds = fTarget->Bounds();
|
BRect targetBounds = fTarget->Bounds();
|
||||||
// if vertical, check bounds top and scroll if different from newValue
|
// if vertical, check bounds top and scroll if different from newValue
|
||||||
|
|||||||
Reference in New Issue
Block a user