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);
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);
}
}
// 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);
}
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);
}