diff -r 5253a20d2a1e -r a4d6f1ea0416 emailuis/emailui/src/FreestyleEmailUiViewBase.cpp --- 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) );