1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 15:09:40 +00:00

spellwindow: do onWindowResize in ctor after dimensions are set

This commit is contained in:
Ilya Zhuravlev 2019-04-25 08:51:57 -04:00
parent 26ac7412a0
commit e1ce15efb5

View file

@ -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<MyGUI::Window>();
t->eventWindowChangeCoord += MyGUI::newDelegate(this, &SpellWindow::onWindowResize);
onWindowResize(t);
setCoord(498, 300, 302, 300);
}
SpellWindow::~SpellWindow()