mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 14:39:41 +00:00
spellwindow: do onWindowResize in ctor after dimensions are set
This commit is contained in:
parent
26ac7412a0
commit
e1ce15efb5
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue