Skip to content

Commit

Permalink
Changing the theme of MessageBox could cause it to stop auto-sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Aug 27, 2023
1 parent 714e5e4 commit f099df3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Widgets/MessageBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,14 @@ namespace tgui
rearrange();
}
else
{
const bool autoSize = m_autoSize;
ChildWindow::rendererChanged(property);

// Updating e.g. the borders will cause setSize to be called and auto-sizing to be disabled.
// Make certain that updating the renderer never impacts our auto-size flag.
m_autoSize = autoSize;
}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit f099df3

Please sign in to comment.