diff --git a/es-core/src/components/ScrollableContainer.cpp b/es-core/src/components/ScrollableContainer.cpp index 3b394d606..010ffca89 100644 --- a/es-core/src/components/ScrollableContainer.cpp +++ b/es-core/src/components/ScrollableContainer.cpp @@ -89,7 +89,7 @@ void ScrollableContainer::resetComponent() float numLines {std::floor(mSize.y / combinedHeight)}; if (numLines == 0) numLines = 1; - mAdjustedHeight = std::round(numLines * combinedHeight); + mAdjustedHeight = std::ceil(numLines * combinedHeight); } else { mAdjustedHeight = mSize.y; @@ -163,7 +163,7 @@ void ScrollableContainer::update(int deltaTime) float numLines {std::floor(mSize.y / combinedHeight)}; if (numLines == 0) numLines = 1; - mAdjustedHeight = std::round(numLines * combinedHeight); + mAdjustedHeight = std::ceil(numLines * combinedHeight); } else { mAdjustedHeight = mSize.y;