}
__pContextMenu = new (std::nothrow) ContextMenu();
- __pContextMenu->Construct(Point(CONTEXT_MENU_X, CONTEXT_MENU_Y), CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_DOWNWARD);
+ __pContextMenu->Construct(Point(CONTEXT_MENU_X, CONTEXT_MENU_Y), CONTEXT_MENU_STYLE_LIST);
std::unique_ptr<LiveboxProviderInfo> pProviderInfo(LiveboxManager::GetInstance()->GetLiveboxProviderInfoN(appId, providerName ));
TryReturnVoid(pProviderInfo.get(), "pProviderInfo is null!!");
}
Rectangle formBounds = GetBounds();
- Rectangle contextMenuBounds = __pContextMenu->GetBounds();
- Point anchor = __pContextMenu->GetAnchorPosition();
- anchor.y = formBounds.height - contextMenuBounds.height;
+ Footer* pFooter = GetFooter();
+ Rectangle footerBounds = pFooter->GetBounds();
- AppLog("(%d %d %d %d) (%d %d)", contextMenuBounds.x, contextMenuBounds.y, contextMenuBounds.width, contextMenuBounds.height, anchor.x, anchor.y);
+ Point anchor(formBounds.width / 2, formBounds.height - footerBounds.height);
__pContextMenu->SetAnchorPosition(anchor);
-
__pContextMenu->AddActionEventListener(*this);
}