Removed an unnecessary element resize in ScrollableContainer

This commit is contained in:
Leon Styhre 2024-09-04 17:16:28 +02:00
parent f3af0e246c
commit 281b967e8f

View file

@ -70,7 +70,6 @@ void ScrollableContainer::resetComponent()
// This applies to the actual TextComponent that is getting displayed. // This applies to the actual TextComponent that is getting displayed.
mChildren.front()->setAutoCalcExtent(glm::ivec2 {0, 1}); mChildren.front()->setAutoCalcExtent(glm::ivec2 {0, 1});
mChildren.front()->setSize(mSize.x, 0.0f);
// This is needed to resize to the designated area when the background image gets invalidated. // This is needed to resize to the designated area when the background image gets invalidated.
if (!mChildren.empty()) { if (!mChildren.empty()) {