menufw/menufwui/mmwidgets/src/mmwidgetcontainer.cpp
branchRCL_3
changeset 50 137ebc85284b
parent 47 7be2816dbabd
child 54 1b758917cafc
equal deleted inserted replaced
47:7be2816dbabd 50:137ebc85284b
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *  Version     : %version: MM_71.1.17.1.64 % << Don't touch! Updated by Synergy at check-out.
    15 *  Version     : %version: MM_71.1.17.1.65 % << Don't touch! Updated by Synergy at check-out.
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 #include <e32keys.h>
    19 #include <e32keys.h>
    20 #include <e32math.h>
    20 #include <e32math.h>
  1743 void CMmWidgetContainer::HandleNumberOfItemsChangedL( TItemsChangeType aChange )
  1743 void CMmWidgetContainer::HandleNumberOfItemsChangedL( TItemsChangeType aChange )
  1744     {
  1744     {
  1745     SetHighlightVisibilityL( EFalse );
  1745     SetHighlightVisibilityL( EFalse );
  1746     if( aChange == EItemsAdded )
  1746     if( aChange == EItemsAdded )
  1747         {
  1747         {
       
  1748         // force update scrollbar to go down
       
  1749         if( WidgetType() == EGridWidget && NumberOfItems() > 0)
       
  1750             Widget()->SetCurrentItemIndex( NumberOfItems() - 1 );
  1748         HandleItemAdditionL();
  1751         HandleItemAdditionL();
  1749         }
  1752         }
  1750     else if( aChange == EItemsRemoved )
  1753     else if( aChange == EItemsRemoved )
  1751         {
  1754         {
  1752         HandleItemRemovalL();
  1755         HandleItemRemovalL();