Skip to content

Commit

Permalink
Applied the same fix the mod lists
Browse files Browse the repository at this point in the history
  • Loading branch information
SMJSGaming committed Oct 8, 2024
1 parent 91bf742 commit 05d5e08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loader/src/ui/mods/list/ModList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ void ModList::updateTopContainer() {
auto oldPosition = oldPositionArea > 0.f ?
m_list->m_contentLayer->getPositionY() / oldPositionArea :
-1.f;

// Update list size to account for the top menu
// (giving a little bit of extra padding for it, the same size as gap)
m_list->setContentHeight(
Expand All @@ -530,6 +530,8 @@ void ModList::updateTopContainer() {
static_cast<AxisLayout*>(m_list->m_contentLayer->getLayout())->getGap() :
this->getContentHeight()
);
as<ColumnLayout*>(m_list->m_contentLayer->getLayout())->setAutoGrowAxis(m_list->getContentHeight());
m_list->m_contentLayer->updateLayout();

// Preserve relative scroll position
m_list->m_contentLayer->setPositionY((
Expand Down

0 comments on commit 05d5e08

Please sign in to comment.