{
__isFocused = false;
__pOptionMenuPresenter->ClearFocus();
-
CloseAnimation(-1);
return true;
}
void
_OptionMenu::OnVisualElementAnimationFinished(const Tizen::Ui::Animations::VisualElementAnimation& animation, const Tizen::Base::String& keyName, Tizen::Ui::Animations::VisualElement& target, bool completedNormally)
{
+ if (!completedNormally)
+ {
+ VisualElementPropertyAnimation* pPropertyAnimation = dynamic_cast< VisualElementPropertyAnimation* >(const_cast< VisualElementAnimation* >(&animation));
+ if (pPropertyAnimation)
+ {
+ target.SetProperty(keyName, pPropertyAnimation->GetEndValue());
+ }
+ }
+
__isAnimating = false;
if (keyName == L"ClosingOpacityAnimation")
pOpacityAnimation->SetVisualElementAnimationStatusEventListener(this);
- pVisualElement->AddAnimation(L"OpeningBoundsAnimation", *pBoundsAnimation);
- pVisualElement->AddAnimation(L"OpeningOpacityAnimation", *pOpacityAnimation);
+ pVisualElement->AddAnimation(L"bounds", *pBoundsAnimation);
+ pVisualElement->AddAnimation(L"opacity", *pOpacityAnimation);
__isAnimating = true;