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:
parent
26ac7412a0
commit
e1ce15efb5
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user