meetingrequest/mrgui/src/cmrfieldcontainer.cpp
branchRCL_3
changeset 16 b5fbb9b25d57
parent 12 4ce476e64c59
child 22 d620048b4810
equal deleted inserted replaced
14:b13141f05c3d 16:b5fbb9b25d57
   774             }
   774             }
   775         
   775         
   776         // Field is in edit mode
   776         // Field is in edit mode
   777         if( field->FieldMode() == EESMRFieldModeEdit )
   777         if( field->FieldMode() == EESMRFieldModeEdit )
   778             {
   778             {
   779             // TODO: CORRECT if broken
       
   780             TInt viewBottom( parentRect.iBr.iY );
   779             TInt viewBottom( parentRect.iBr.iY );
   781 
   780 
   782             TInt fieldUpper( 0 );
   781             TInt fieldUpper( 0 );
   783             TInt fieldLower( 0 );
   782             TInt fieldLower( 0 );
   784             field->GetCursorLineVerticalPos( fieldUpper, fieldLower );
   783             field->GetCursorLineVerticalPos( fieldUpper, fieldLower );
   796                 
   795                 
   797                 // if focus on last field: add margin height to
   796                 // if focus on last field: add margin height to
   798                 // scroll amount.
   797                 // scroll amount.
   799                 if ( iFocusedFieldIndex == iFactory.Count()-1 )
   798                 if ( iFocusedFieldIndex == iFactory.Count()-1 )
   800                     {
   799                     {
   801                     px += KVerticalScrollMargin; // TODO: Fix me! K-value must be removed.
   800                     px += KVerticalScrollMargin;
   802                     }
   801                     }
   803                 
   802                 
   804                 // Scrollbar and physics update is done here
   803                 // Scrollbar and physics update is done here
   805                 iObserver->ScrollFieldsUp( px );
   804                 iObserver->ScrollFieldsUp( px );
   806                 }
   805                 }