emailuis/emailui/src/FreestyleEmailUiViewBase.cpp
changeset 3 a4d6f1ea0416
parent 2 5253a20d2a1e
child 8 e1b6206813b4
--- a/emailuis/emailui/src/FreestyleEmailUiViewBase.cpp	Mon Jan 18 20:08:26 2010 +0200
+++ b/emailuis/emailui/src/FreestyleEmailUiViewBase.cpp	Tue Jan 26 11:45:42 2010 +0200
@@ -103,9 +103,8 @@
     UpdateToolbarL();
 
     // Make sure Alfred display is of correct size (there is some problems with toolbar)
-    TRect metricsRect;
-    AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, metricsRect);
-    CAlfEnv::Static()->PrimaryDisplay().ForceSetVisibleArea(metricsRect);
+    iAppUi.AlfEnv().PrimaryDisplay().ForceSetVisibleArea(iAppUi.ClientRect());
+    
 
     // Finally call child classes activation method
     TRAPD( error, ChildDoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage) );