#include <FGrp_BitmapImpl.h>
#include <FBaseColIEnumeratorT.h>
#include "FUi_ControlImplManager.h"
+#include "FUi_EcoreEvasMgr.h"
#include "FUi_ResourceManager.h"
#include "FUi_KeyEventManager.h"
#include "FUiAnim_VisualElement.h"
{
result r = E_SUCCESS;
- __layout = _ControlManager::GetInstance()->GetOrientation();
- __rotation = _ControlManager::GetInstance()->GetScreenRotation();
__isAttachedToMainTree = true;
+
_Control* pOwner = GetOwner();
if (pOwner == null)
{
_Form* pForm = pFrame->GetCurrentForm();
pForm != null ? SetOwner(pForm) : SetOwner(pFrame);
+ pOwner = GetOwner();
+
GET_SHAPE_CONFIG(CONTEXTMENU::ITEM_MAX_COUNT, __layout, __showItemMaxCount);
}
else
pOwner->LockInputEvent();
}
+ __layout = pOwner->GetOrientation();
+
+ _Window* pOwnerWindow = pOwner->GetRootWindow();
+
+ if (pOwnerWindow != null)
+ {
+ int ownerRotation = GetEcoreEvasMgr()->GetEcoreEvas()->GetWindowRotation(*pOwnerWindow);
+ switch (ownerRotation)
+ {
+ case 0:
+ __rotation = _CONTROL_ROTATION_0;
+ break;
+
+ case 90:
+ __rotation = _CONTROL_ROTATION_90;
+ break;
+
+ case 180:
+ __rotation = _CONTROL_ROTATION_180;
+ break;
+
+ case 270:
+ __rotation = _CONTROL_ROTATION_270;
+ break;
+
+ default:
+ __rotation = _CONTROL_ROTATION_0;
+ break;
+ }
+ }
+
AdjustDropPosition();
if (GetItemCount() <= 0)