1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +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()