Fixed an issue where scrollable text containers were sometimes not updated correctly

This commit is contained in:
Leon Styhre 2023-10-20 17:38:43 +02:00
parent b43e466175
commit db5948ee4b

View file

@ -66,6 +66,8 @@ void ScrollableContainer::resetComponent()
mAutoScrollResetAccumulator = 0;
mAutoScrollAccumulator = -mAutoScrollDelay + mAutoScrollSpeed;
mAtEnd = false;
mUpdatedSize = false;
// This is needed to resize to the designated area when the background image gets invalidated.
if (!mChildren.empty()) {
float combinedHeight {0.0f};