uifw/AvKon/src/aknlongtapanimation.cpp
branchRCL_3
changeset 4 8ca85d2f0db7
parent 0 2f259fa3e83a
child 23 3d340a0166ff
--- a/uifw/AvKon/src/aknlongtapanimation.cpp	Tue Feb 02 01:00:49 2010 +0200
+++ b/uifw/AvKon/src/aknlongtapanimation.cpp	Fri Feb 19 23:04:46 2010 +0200
@@ -42,6 +42,9 @@
 /** Window`s Position when hiding the animation which  does not own Window Group */
 const TInt KAknAnimationNotOwnWindowGroupWindowPosition = -10; // never at front  
 
+/** animation's position offset */
+const TInt KVerticalOffset = -75;
+
 /**  window group's name */
 _LIT( KAknLongTapWgName, "LongTapAnim" ); // window groups name
 
@@ -165,9 +168,11 @@
     
     SetRect( TRect( TPoint(aX, aY), layoutRect.Rect().Size() ));
     
-    // Position window so that it will be directly on top of
-    // the location that was clicked.
+    // position window
     TPoint point( aX - Rect().Width() / 2, aY - Rect().Height() / 2 );
+    point.iY += KVerticalOffset;
+    point.iY = Max( 0, point.iY );
+    
     Window().SetPosition( point );
 
     iAnim->SetSize( layoutRect.Rect().Size() );