set the outgoing call window's dock point in postBuild() instead of onOpen() to avoid it being in the wrong place for a frame.

meow-7.2.2
Tofu Linden 2009-11-13 19:38:13 +00:00
parent 1b0b439c23
commit 7722105e4e
1 changed files with 5 additions and 5 deletions

View File

@ -1127,11 +1127,6 @@ void LLOutgoingCallDialog::onOpen(const LLSD& key)
childSetTextArg("connecting", "[CALLEE_NAME]", callee_name);
LLAvatarIconCtrl* icon = getChild<LLAvatarIconCtrl>("avatar_icon");
icon->setValue(callee_id);
// dock the dialog to the sys well, where other sys messages appear
setDockControl(new LLDockControl(LLBottomTray::getInstance()->getSysWell(),
this, getDockTongue(), LLDockControl::TOP,
boost::bind(&LLOutgoingCallDialog::getAllowedRect, this, _1)));
}
@ -1156,6 +1151,11 @@ BOOL LLOutgoingCallDialog::postBuild()
childSetAction("Cancel", onCancel, this);
// dock the dialog to the sys well, where other sys messages appear
setDockControl(new LLDockControl(LLBottomTray::getInstance()->getSysWell(),
this, getDockTongue(), LLDockControl::TOP,
boost::bind(&LLOutgoingCallDialog::getAllowedRect, this, _1)));
return success;
}