commonuis/CommonUi/src/FindItemDialog.cpp
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 4 8ca85d2f0db7
child 23 3d340a0166ff
equal deleted inserted replaced
9:aabf2c525e0f 10:9f56a4e1b8ab
  1966         iBgContext->SetRect( Rect() );
  1966         iBgContext->SetRect( Rect() );
  1967         }
  1967         }
  1968 
  1968 
  1969     iTappingOffset = iEdwin->Rect().iTl - Rect().iTl;
  1969     iTappingOffset = iEdwin->Rect().iTl - Rect().iTl;
  1970 
  1970 
       
  1971     CFindItemEngine::SFoundItem item;
       
  1972     TBool anyFound = iController->Item( item );
       
  1973     if( anyFound )
       
  1974     	{
       
  1975         TInt pos = 0;
       
  1976         TInt length = iEdwin->TextLayout()->PosRangeInBand( pos );
       
  1977         if( item.iStartPos >= pos + length )
       
  1978             {
       
  1979             TRAP_IGNORE( iEdwin->MoveDisplayL( TCursorPosition::EFPageDown ) );
       
  1980             }
       
  1981     	}
       
  1982 
  1971     TRAP_IGNORE( UpdateScrollIndicatorL() );
  1983     TRAP_IGNORE( UpdateScrollIndicatorL() );
  1972     }
  1984     }
  1973 
  1985 
  1974 // ----------------------------------------------------------------------------
  1986 // ----------------------------------------------------------------------------
  1975 // CFindItemDialog::CreateCustomControlL
  1987 // CFindItemDialog::CreateCustomControlL