emailuis/emailui/src/FreestyleEmailUiLauncherGridVisualiser.cpp
branchRCL_3
changeset 52 efd4f1afd43e
parent 26 67369d1b217f
child 61 dcf0eedfc1a3
--- a/emailuis/emailui/src/FreestyleEmailUiLauncherGridVisualiser.cpp	Wed Jun 09 09:22:57 2010 +0300
+++ b/emailuis/emailui/src/FreestyleEmailUiLauncherGridVisualiser.cpp	Mon Jun 21 15:20:54 2010 +0300
@@ -912,6 +912,7 @@
 	        iAppUi.SetFocusVisibility( EFalse );
 	        HandleButtonReleaseEvent(); // Finishes the focus removal.
 	        iStylusPopUpMenuLaunched = EFalse;
+	        UpdateGridOffset();
 			break;
 			}
 		case EFsEmailUiCmdSync:
@@ -1826,6 +1827,7 @@
         {
         iDoubleClickLock = EFalse;
         }
+    UpdateGridOffset();
     }
 
 void CFSEmailUiLauncherGridVisualiser::GetParentLayoutsL(
@@ -2778,6 +2780,7 @@
         iStartupCallbackTimer->Start( 200 );
         }
 
+	UpdateGridOffset();
     CFsEmailUiViewBase::HandleAppForegroundEventL( aForeground );	
     }
 
@@ -2816,3 +2819,18 @@
         }
     }
 
+// ---------------------------------------------------------------------------
+// CFSEmailUiLauncherGridVisualiser::UpdateGridOffset()
+// ---------------------------------------------------------------------------
+//
+void CFSEmailUiLauncherGridVisualiser::UpdateGridOffset()
+	{
+	if ( iConstructionCompleted )
+		{
+        TAlfTimedPoint alfScrollOffset;
+        alfScrollOffset.iY.SetTarget( 1.0 , 0);
+        iCurrentLevel.iGridLayout->SetScrollOffset(alfScrollOffset);
+        iCurrentLevel.iParentPos.iY = 1.0;
+		}
+	}
+