Anchor pos fixed
authorHeeJu Kang <mobum.kang@samsung.com>
Sun, 17 Feb 2013 07:12:44 +0000 (16:12 +0900)
committerHeeJu Kang <mobum.kang@samsung.com>
Sun, 17 Feb 2013 07:12:44 +0000 (16:12 +0900)
Change-Id: I96273e3c3987117a52899a9209fcfef06c0254a4
Signed-off-by: HeeJu Kang <mobum.kang@samsung.com>
src/FShell_LiveboxPopupPresenter.cpp

index a805a71..718e2d9 100644 (file)
@@ -129,12 +129,11 @@ _LiveboxPopupPresenter::DrawAnchor(Canvas& canvas)
        Bitmap* pArrowBitmap = null;
 
        Dimension screenSize = _ControlManager::GetInstance()->GetScreenSize();
-       Point anchor(anchorF.x * screenSize.width, 0);
+       Point anchor(0, 0);
 
        if (anchorF.y < 0.5f)
        {
                pArrowBitmap = __pArrowUpBitmap.get();
-               anchor.y = 0;
        }
        else
        {
@@ -142,6 +141,8 @@ _LiveboxPopupPresenter::DrawAnchor(Canvas& canvas)
                anchor.y = popupBounds.height - pArrowBitmap->GetHeight();
        }
 
+       anchor.x = (anchorF.x * screenSize.width) - (pArrowBitmap->GetWidth() / 2);
+
        Rectangle bounds(anchor.x, anchor.y, pArrowBitmap->GetWidth(), pArrowBitmap->GetHeight());
 
        if (pArrowBitmap->IsNinePatchedBitmap())