uifw/AvKon/src/Aknpopupform.cpp
branchRCL_3
changeset 55 aecbbf00d063
parent 18 0aa5fbdfbc30
child 56 d48ab3b357f1
--- a/uifw/AvKon/src/Aknpopupform.cpp	Thu Aug 19 10:11:06 2010 +0300
+++ b/uifw/AvKon/src/Aknpopupform.cpp	Tue Aug 31 15:28:30 2010 +0300
@@ -596,17 +596,6 @@
                 {
                 ClearArea( Rect() );
                 UpdateScrollIndicatorL();
-                // if iNoOfEditorLines becomes small, firstly calculate the New PopupForm layout.
-				// Because position of PopupForm is related to last PoppupForm layout.
-				if ( iNoOfEditorLines < oldNoOfLines )
-					{
-					TSize size;
-				    if ( !AknLayoutUtils::LayoutMetricsSize( AknLayoutUtils::EScreen, size ) )
-				    	{
-						size = iCoeEnv->ScreenDevice()->SizeInPixels() ;
-				    	}
-					SetSizeAndPosition( PreferredSize( size ) );
-					}
                 LayoutAndDraw();
                 }
             else if ( IsActivated() )
@@ -2347,15 +2336,6 @@
     UpdateFlags( ctrlType, ETrue );
 
     CalculateNumberOfScreens();
-    // because of insert a control, iNoOfEditorLines of editor become small, 
-    // but position is calculated by previous size of editor,
-    // So firstly calculate editor layout.
-    TSize size;
-    if ( !AknLayoutUtils::LayoutMetricsSize( AknLayoutUtils::EScreen, size ) )
-    	{
-		size = iCoeEnv->ScreenDevice()->SizeInPixels() ;
-    	}
-	SetSizeAndPosition( PreferredSize( size ) );
     LayoutAndDraw();
     UpdateScrollIndicatorL();