Nabi issue 46564 fix
authorMANISH KUMAR <kr.manish@samsung.com>
Tue, 16 Jul 2013 11:41:04 +0000 (17:11 +0530)
committerMANISH KUMAR <kr.manish@samsung.com>
Tue, 16 Jul 2013 11:41:04 +0000 (17:11 +0530)
Change-Id: Icbeb84c0753c6db2094dbef265c52e3244b903a1
Signed-off-by: MANISH KUMAR <kr.manish@samsung.com>
src/GlAlbumNameEditorForm.cpp
src/GlProgressAnimation.cpp

index 1130a56..3ce1d2f 100644 (file)
@@ -333,7 +333,7 @@ AlbumNameEditorForm::OnRenameAlbum(String& strOri)
        else
        {
                //Add a popup here
-               Rectangle clientRect = GetClientAreaBounds();
+               Rectangle clientRect = Form::GetBounds();
                Rectangle rect(0, 0, clientRect.width, clientRect.height);
                __pProgressAnim = new (std::nothrow) ProgressAnimation;
                __pProgressAnim->Construct(rect);
@@ -695,9 +695,9 @@ AlbumNameEditorForm::CreateMessage(String& str)
 void
 AlbumNameEditorForm::OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus)
 {
-       if (__pProgressAnim != NULL)
+       if (__pProgressAnim != null)
        {
-               __pProgressAnim->ChangeOrientation(GetClientAreaBounds());
+               __pProgressAnim->ChangeOrientation(Form::GetBounds());
                __pProgressAnim->Invalidate(true);
        }
 }
index 465706c..73352bc 100644 (file)
@@ -185,7 +185,7 @@ ProgressAnimation::Construct(Tizen::Graphics::Rectangle rect)
 
                // Create Animation
                __pAnimation = new (std::nothrow) Animation();
-               __pAnimation->Construct(Rectangle((rect.width / 2 - 60 / 2), (rect.height / 2 + 30), 60, 60), *__pAnimationFrameList);
+               __pAnimation->Construct(Rectangle((rect.width / 2 - 60 / 2), (rect.height / 2 - 30), 60, 60), *__pAnimationFrameList);
                __pAnimation->SetRepeatCount(10000);
                AddControl(__pAnimation);
        }
@@ -211,6 +211,6 @@ void
 ProgressAnimation::ChangeOrientation(Tizen::Graphics::Rectangle rect)
 {
        Panel::SetBounds(rect);
-       __pAnimation->SetBounds((rect.width / 2 - 60 / 2), (rect.height / 2 + 30), 60, 60);
+       __pAnimation->SetBounds((rect.width / 2 - 60 / 2), (rect.height / 2 - 30), 60, 60);
        __pAnimation->Invalidate(true);
 }