From e1ce15efb5dab25256faaa1fe4a0f7ab8ec5e805 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Thu, 25 Apr 2019 08:51:57 -0400 Subject: [PATCH] spellwindow: do onWindowResize in ctor after dimensions are set --- apps/openmw/mwgui/spellwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/spellwindow.cpp b/apps/openmw/mwgui/spellwindow.cpp index 3ae6813907..cb163b6483 100644 --- a/apps/openmw/mwgui/spellwindow.cpp +++ b/apps/openmw/mwgui/spellwindow.cpp @@ -50,11 +50,11 @@ namespace MWGui mFilterEdit->eventEditTextChange += MyGUI::newDelegate(this, &SpellWindow::onFilterChanged); mDeleteButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SpellWindow::onDeleteClicked); + setCoord(498, 300, 302, 300); + MyGUI::Window* t = mMainWidget->castType(); t->eventWindowChangeCoord += MyGUI::newDelegate(this, &SpellWindow::onWindowResize); onWindowResize(t); - - setCoord(498, 300, 302, 300); } SpellWindow::~SpellWindow()