1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 09:36:37 +00:00

Fix adjustment of inventory preview size when guimode changes (Fixes #2973)

This commit is contained in:
scrawl 2015-10-26 14:25:44 +01:00
parent 515c52211e
commit 944e6d0844

View File

@ -167,11 +167,12 @@ namespace MWGui
MyGUI::IntSize size(static_cast<int>(Settings::Manager::getFloat(setting + " w", "Windows") * viewSize.width),
static_cast<int>(Settings::Manager::getFloat(setting + " h", "Windows") * viewSize.height));
mMainWidget->setPosition(pos);
mMainWidget->setSize(size);
if (size.width != mMainWidget->getWidth() || size.height != mMainWidget->getHeight())
updatePreviewSize();
mMainWidget->setPosition(pos);
mMainWidget->setSize(size);
adjustPanes();
}