SetSize(popUpDimen);
SetControlAlwaysOnTop(*pMsgTxtBox,true);
- RelativeLayout* relPopUpLayout = static_cast<RelativeLayout*>(GetLayoutN());
+ RelativeLayout* relPopUpLayout = static_cast<RelativeLayout*>(GetLandscapeLayoutN());
+ if(relPopUpLayout != null)
+ {
+ // Set Relations between msgtextbox and Popup
+ relPopUpLayout->SetCenterAligned(*pMsgTxtBox, CENTER_ALIGN_HORIZONTAL);
+ relPopUpLayout->SetCenterAligned(*pMsgTxtBox, CENTER_ALIGN_VERTICAL);
+ }
+ relPopUpLayout = static_cast<RelativeLayout*>(GetPortraitLayoutN());
if(relPopUpLayout != null)
{
// Set Relations between msgtextbox and Popup