equal
deleted
inserted
replaced
351 else |
351 else |
352 { |
352 { |
353 iGrid->ItemDrawer()->ColumnData()->SetDrawBackground(ETrue); |
353 iGrid->ItemDrawer()->ColumnData()->SetDrawBackground(ETrue); |
354 static_cast<CTsAppView*>(&iParent)->EnableDragEvents(EFalse); |
354 static_cast<CTsAppView*>(&iParent)->EnableDragEvents(EFalse); |
355 } |
355 } |
|
356 |
|
357 // Update scrollbar frame |
|
358 if( iGrid->ScrollBarFrame() ) |
|
359 { |
|
360 iGrid->SetScrollBarFrame(NULL,CEikListBox::EOwnedExternally); |
|
361 } |
356 } |
362 } |
357 |
363 |
358 |
364 |
359 // -------------------------------------------------------------------------- |
365 // -------------------------------------------------------------------------- |
360 // CTsFastSwapArea::GetFastSwapAreaRects |
366 // CTsFastSwapArea::GetFastSwapAreaRects |
422 // Grid needs to be recreated to proper reinitilize |
428 // Grid needs to be recreated to proper reinitilize |
423 // data with new layout values |
429 // data with new layout values |
424 TInt selIdx = SelectedIndex(); |
430 TInt selIdx = SelectedIndex(); |
425 TRAPD(err, |
431 TRAPD(err, |
426 LayoutGridL(); |
432 LayoutGridL(); |
427 LayoutGridViewL( iArray.Count() ) |
433 LayoutGridViewL( iArray.Count() ); |
|
434 iEvtHandler.ReInitPhysicsL( GridWorldSize(), ViewSize(), ETrue ); |
428 ); |
435 ); |
429 |
436 |
430 if ( err != KErrNone ) |
437 if ( err != KErrNone ) |
431 { |
438 { |
432 TSLOG1( TSLOG_INFO, "LayoutGridL leaves with %d", err ); |
439 TSLOG1( TSLOG_INFO, "LayoutGridL leaves with %d", err ); |
898 // give feedback |
905 // give feedback |
899 LaunchPopupFeedback(); |
906 LaunchPopupFeedback(); |
900 |
907 |
901 iPrevAppCount = iArray.Count(); |
908 iPrevAppCount = iArray.Count(); |
902 |
909 |
903 iGrid->MakeVisible(ETrue); |
910 if ( !appUi->DelayedForegroundLaunched() ) |
|
911 { |
|
912 iGrid->MakeVisible(ETrue); |
|
913 } |
904 |
914 |
905 TSLOG_OUT(); |
915 TSLOG_OUT(); |
906 } |
916 } |
907 |
917 |
908 // ----------------------------------------------------------------------------- |
918 // ----------------------------------------------------------------------------- |
1180 iTapEvent.iType = TPointerEvent::EButton1Up; |
1190 iTapEvent.iType = TPointerEvent::EButton1Up; |
1181 iGrid->HandlePointerEventL(iTapEvent); |
1191 iGrid->HandlePointerEventL(iTapEvent); |
1182 } |
1192 } |
1183 else if(aSource == iRedrawTimer) |
1193 else if(aSource == iRedrawTimer) |
1184 { |
1194 { |
|
1195 iGrid->MakeVisible(ETrue); |
1185 static_cast<CTsAppView*>(&iParent)->OrderFullWindowRedraw(); |
1196 static_cast<CTsAppView*>(&iParent)->OrderFullWindowRedraw(); |
1186 } |
1197 } |
1187 else if( aSource == iUpdateGridTimer ) |
1198 else if( aSource == iUpdateGridTimer ) |
1188 { |
1199 { |
1189 UpdateGrid(ETrue, ETrue); |
1200 UpdateGrid(ETrue, ETrue); |