Fix menu items that don't respect UI scale (fix #3843)

This commit is contained in:
Gaspar Capello 2023-07-13 11:11:52 -03:00 committed by David Capello
parent 081f1e535b
commit 264cd98ab4

View File

@ -1691,6 +1691,8 @@ void Widget::onBroadcastMouseMessage(const gfx::Point& screenPos,
void Widget::onInitTheme(InitThemeEvent& ev)
{
// Reset cached font
m_font = nullptr;
// Create a copy of the children list and iterate it, just in case a
// initTheme() modifies this list (e.g. this can happen in some
// strange cases with viewports, where scrollbars are added/removed