--- a/application/src/PodcastListView.cpp Mon Nov 15 22:54:58 2010 +0000
+++ b/application/src/PodcastListView.cpp Mon Nov 15 23:37:25 2010 +0000
@@ -73,7 +73,8 @@
iListboxLandscape->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EAuto, CEikScrollBarFrame::EAuto );
iListboxLandscape->SetSize(aRect.Size());
iListboxLandscape->MakeVisible(EFalse);
-
+ iListboxLandscape->ItemDrawer()->ColumnData()->EnableMarqueeL(ETrue);
+
iListboxPortrait = new (ELeave) CAknDoubleLargeStyleListBox;
iListboxPortrait->ConstructL(this, aListboxFlags);
iListboxPortrait->SetMopParent( this );
@@ -82,6 +83,7 @@
iListboxPortrait->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EAuto, CEikScrollBarFrame::EAuto );
iListboxPortrait->SetSize(aRect.Size());
iListboxPortrait->MakeVisible(EFalse);
+ iListboxPortrait->ItemDrawer()->ColumnData()->EnableMarqueeL(ETrue);
if (aRect.Width() > aRect.Height())
{
@@ -170,9 +172,16 @@
iListboxPortrait->UpdateScrollBarsL();
iListboxPortrait->MakeVisible(EFalse);
+
iListboxLandscape->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EAuto, CEikScrollBarFrame::EAuto );
iListboxLandscape->MakeVisible(ETrue);
iListboxLandscape->SetFocus(ETrue, EDrawNow);
+
+ TInt index = iListboxPortrait->CurrentItemIndex();
+
+ if (IsVisible())
+ iListboxLandscape->SetCurrentItemIndex(index);
+
iListbox = iListboxLandscape;
}
else
@@ -184,9 +193,15 @@
iListboxPortrait->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EAuto, CEikScrollBarFrame::EAuto );
iListboxPortrait->MakeVisible(ETrue);
iListboxPortrait->SetFocus(ETrue, EDrawNow);
+
+ TInt index = iListboxLandscape->CurrentItemIndex();
+
+ if (IsVisible())
+ iListboxPortrait->SetCurrentItemIndex(index);
+
iListbox = (CEikColumnListBox*) iListboxPortrait;
}
-
+
iListbox->SetSize(Size());
ActivateL();
DrawNow();
@@ -307,8 +322,6 @@
void CPodcastListView::HandleViewRectChange()
{
- TBool wasVisible = iListContainer->IsVisible();
-
if ( iListContainer )
{
iListContainer->SetRect( ClientRect() );