emailuis/emailui/src/ncscomposeviewcontainer.cpp
changeset 4 e7aa27f58ae1
parent 3 a4d6f1ea0416
child 8 e1b6206813b4
--- a/emailuis/emailui/src/ncscomposeviewcontainer.cpp	Tue Jan 26 11:45:42 2010 +0200
+++ b/emailuis/emailui/src/ncscomposeviewcontainer.cpp	Tue Feb 02 00:02:40 2010 +0200
@@ -705,16 +705,20 @@
 // This is called through MNcsFieldSizeObserver when the rects have changed
 // -----------------------------------------------------------------------------
 //
-TBool CNcsComposeViewContainer::UpdateFieldSizeL()
+TBool CNcsComposeViewContainer::UpdateFieldSizeL( TBool aDoScroll )
     {
     FUNC_LOG;
 
 	// We may not have finished construction
-	if ( iHeader && iMessageField && iReadOnlyQuoteField )
+	if ( iHeader && iMessageField && iReadOnlyQuoteField && !aDoScroll )
 	    {
 	    SizeChanged();
 	    DrawDeferred();
 	    }
+	if ( iHeader && aDoScroll )
+	    {
+	    iHeader->DoScrollL();
+	    }
 
 	return EFalse;
     }