taskswitcher/taskswitcherui/taskswitcherapp/src/tsappview.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 88 3321d3e205b6
--- a/taskswitcher/taskswitcherui/taskswitcherapp/src/tsappview.cpp	Wed Sep 15 12:00:00 2010 +0300
+++ b/taskswitcher/taskswitcherui/taskswitcherapp/src/tsappview.cpp	Wed Oct 13 14:18:30 2010 +0300
@@ -205,18 +205,9 @@
     bgTport.LayoutRect( iViewRect,
         AknLayoutScalable_Apps::bg_popup_window_pane_cp01( variety ) );
     iBgContextOuterRect = bgTport.Rect();
-    if( iBgContextOuterRect == iViewRect )
-        {
-        //full screen
-        iBgContextInnerRect = iBgContextOuterRect;
-        }
-    else
-        {
-        bgTport.LayoutRect( iBgContextOuterRect,
-                AknLayoutScalable_Avkon::
-                aid_inside_area_window_primary( variety ) );
-        iBgContextInnerRect = bgTport.Rect();
-        }
+    bgTport.LayoutRect( iBgContextOuterRect,
+        AknLayoutScalable_Avkon::aid_inside_area_window_primary( variety ) );
+    iBgContextInnerRect = bgTport.Rect();
     TSLOG4( TSLOG_INFO, "outer rect for popup = %d %d %d %d",
             iBgContextOuterRect.iTl.iX, iBgContextOuterRect.iTl.iY,
             iBgContextOuterRect.iBr.iX, iBgContextOuterRect.iBr.iY );
@@ -252,6 +243,7 @@
     iAppsHeading->ConstructL( KNullDesC() );
     iAppsHeading->SetLayout( CAknPopupHeadingPane::EListHeadingPane ); 
 
+    //TODO: check why we need to set rect (set already in contructL)
     iFastSwapArea->SetRect( rects[1] ); // cannot be before iAppsHeading constructL
     iAppsHeading->SetRect( rects[0] );