menufw/menufwui/mmwidgets/src/mmlistbox.cpp
branchRCL_3
changeset 23 7be2816dbabd
parent 19 79311d856354
child 25 137ebc85284b
equal deleted inserted replaced
19:79311d856354 23:7be2816dbabd
   678 // -----------------------------------------------------------------------------
   678 // -----------------------------------------------------------------------------
   679 //
   679 //
   680 // -----------------------------------------------------------------------------
   680 // -----------------------------------------------------------------------------
   681 //
   681 //
   682 void CMmListBox::UpdateScrollBarsL()
   682 void CMmListBox::UpdateScrollBarsL()
   683   {
   683     {
   684   TBool redrawNeeded = HandleScrollbarVisibilityChangeL();
   684     TBool redrawNeeded = HandleScrollbarVisibilityChangeL();
   685   if (ScrollBarFrame()->VerticalScrollBar()->IsVisible())
   685     if (ScrollBarFrame()->VerticalScrollBar()->IsVisible())
   686     {
   686         {
   687     CMmListBoxView* view = static_cast<CMmListBoxView*>( View() );
   687         CMmListBoxView* view = static_cast<CMmListBoxView*>( View() );
   688     view->DisableScrollToItem( ETrue );
   688         view->DisableScrollToItem( ETrue );
   689     TScrollToItemEnabler reverter = { view };
   689         TScrollToItemEnabler reverter = { view };
   690     CleanupClosePushL( reverter );
   690         CleanupClosePushL( reverter );
   691     CEikFormattedCellListBoxTypedef::UpdateScrollBarsL();
   691         CEikFormattedCellListBoxTypedef::UpdateScrollBarsL();
   692     CleanupStack::PopAndDestroy( &reverter );
   692         CleanupStack::PopAndDestroy( &reverter );
   693     }
   693         }
   694   iMmDrawer->TemplateLibrary()->SetScrollbarWidthL(
   694     iMmDrawer->TemplateLibrary()->SetScrollbarWidthL(
   695         ScrollBarFrame()->VerticalScrollBar()->Rect().Width() );
   695         ScrollBarFrame()->VerticalScrollBar()->Rect().Width() );
   696   FixViewForMirroredLayout();
   696     FixViewForMirroredLayout();
   697   if ( redrawNeeded )
   697     if ( redrawNeeded )
   698     {
   698         {
   699     DrawNow();
   699         DrawNow();
   700     }
   700         }
   701   }
   701     }
   702 
   702 
   703 // -----------------------------------------------------------------------------
   703 // -----------------------------------------------------------------------------
   704 //
   704 //
   705 // -----------------------------------------------------------------------------
   705 // -----------------------------------------------------------------------------
   706 //
   706 //