idlehomescreen/widgetmanager/src/wmlistbox.cpp
branchRCL_3
changeset 23 7be2816dbabd
parent 19 79311d856354
child 28 d721605b30d0
--- a/idlehomescreen/widgetmanager/src/wmlistbox.cpp	Tue Apr 27 16:26:12 2010 +0300
+++ b/idlehomescreen/widgetmanager/src/wmlistbox.cpp	Tue May 11 16:02:39 2010 +0300
@@ -77,7 +77,7 @@
         CWmListBox* aListBox )
     : CFormattedCellListBoxItemDrawer( aTextListBoxModel,aFont,aFormattedCellData ),
     iWmPlugin( aWmPlugin )
-	{    
+	{
     iCellData = aFormattedCellData;
     iListBox = aListBox;
 	}
@@ -160,8 +160,9 @@
         ::listrow_wgtman_pane().LayoutLine();
     TAknLayoutRect listRowPaneRect;
     listRowPaneRect.LayoutRect( listPaneRect.Rect(), listRowPane );
-    TRAP_IGNORE( iListBox->SetItemHeightL( listRowPaneRect.Rect().Height() ); );
-    iListBox->View()->ItemDrawer()->SetItemCellSize( listRowPaneRect.Rect().Size() );
+    TRect itemRect = listRowPaneRect.Rect();
+    TRAP_IGNORE( iListBox->SetItemHeightL( itemRect.Height() ); );
+    iListBox->View()->ItemDrawer()->SetItemCellSize( itemRect.Size() );
     }
 
 // ---------------------------------------------------------
@@ -318,7 +319,7 @@
 // ---------------------------------------------------------
 //
 CWmListBox::CWmListBox( CWmPlugin& aWmPlugin ):
-    CAknDouble2LargeStyleListBox(),
+    CEikFormattedCellListBox(),
     iWmPlugin( aWmPlugin )
     {
     iFindPaneIsVisible = EFalse;
@@ -557,7 +558,7 @@
 //
 void CWmListBox::SizeChanged()
     {
-    CAknDouble2LargeStyleListBox::SizeChanged();
+    CEikFormattedCellListBox::SizeChanged();
     
     CWmListItemDrawer* itemDrawer = 
                     static_cast <CWmListItemDrawer*>( iItemDrawer );
@@ -577,7 +578,7 @@
     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
     MAknsControlContext* cc = AknsDrawUtils::ControlContext( this );
     AknsDrawUtils::Background( skin, cc, this, gc, Rect() );
-    CAknDouble2LargeStyleListBox::Draw( aRect );
+    CEikFormattedCellListBox::Draw( aRect );
     }
 
 // ---------------------------------------------------------