Fix for 45866
[apps/osp/Call.git] / src / CallActiveCallForm.cpp
index ddc03aa..635a485 100644 (file)
@@ -1028,9 +1028,6 @@ ActiveCallForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId&
                        __pCallButtonsPanel->EnableAddCallButton(true);
                }
 
-               //update position of call buttons panel
-               Label* pKeysBgLbl = static_cast<Label*>(GetControl(IDC_KEY_BG_LABEL, true));
-               __pCallButtonsPanel->SetBounds(pKeysBgLbl->GetBounds());
 
                //bring button on top
                __pCallButtonsPanel->SetButtonPosition();
@@ -1089,6 +1086,10 @@ ActiveCallForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId&
                pArgs = null;
        }
 
+       //update position of call buttons panel
+       Label* pKeysBgLbl = static_cast<Label*>(GetControl(IDC_KEY_BG_LABEL, true));
+       __pCallButtonsPanel->SetBounds(pKeysBgLbl->GetBounds());
+
        CallApp* pCallApp = static_cast<CallApp*>(CallApp::GetInstance());
        pCallApp->SetTopMostWindow(false);
 }