mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Fix adjustment of inventory preview size when guimode changes (Fixes #2973)
This commit is contained in:
parent
515c52211e
commit
944e6d0844
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue