textinput/peninputgenericitut/src/peninputgenericitutdatamgr.cpp
branchRCL_3
changeset 46 bd83ceabce89
parent 44 ecbabf52600f
child 50 5a1685599b76
--- a/textinput/peninputgenericitut/src/peninputgenericitutdatamgr.cpp	Wed Sep 01 12:23:33 2010 +0100
+++ b/textinput/peninputgenericitut/src/peninputgenericitutdatamgr.cpp	Tue Sep 14 21:59:06 2010 +0300
@@ -494,7 +494,7 @@
 	TRect cellSpellRect;
 	cellSpellRect.iTl.iX = middleButtonPaneRect.iTl.iX;
 	cellSpellRect.iTl.iY = middleButtonPaneRect.iTl.iY + 
-			itucellrect.Rect().Height() * 5 + 7;
+			itucellrect.Rect().Height() * 5;
 	cellSpellRect.SetHeight( itucellrect.Rect().Height());
 	cellSpellRect.SetWidth( itucellrect.Rect().Width());
 		
@@ -907,8 +907,18 @@
     iCandsUnitHeight = charpanerect1.Rect().Height() ;
     
     iCandsSpinBtnHeight = listctrlrect.Rect().Height();
+    
+    TInt gapValue = ( iScreenSize.iWidth - ( 
+    		iCandsUnitWidth + iCandsHorizontalMargin + KCandsAdjustment ) * 6 ) / 2;
+    if ( gapValue < 0 )
+    	{
+		gapValue = 0;
+    	}
+    
     iCandsSpellLTPos = charpanerect1.Rect().iTl;
+    iCandsSpellLTPos.iX = gapValue;
     iCandsLTPos = charpanerect3.Rect().iTl;
+    iCandsLTPos.iX = gapValue;
     iCandsPuncLTPos = iCandsSpellLTPos;
     
     TAknTextLineLayout candstxtlayout =