calendarui/views/src/calencontainerlayoutmanager.cpp
branchRCL_3
changeset 12 38571fd2a704
parent 0 f979ecb2b13e
child 67 1539a383d7b6
--- a/calendarui/views/src/calencontainerlayoutmanager.cpp	Fri Feb 19 22:49:53 2010 +0200
+++ b/calendarui/views/src/calencontainerlayoutmanager.cpp	Fri Mar 12 15:42:35 2010 +0200
@@ -144,12 +144,8 @@
     // See if preview pane is available
     CheckPreviewL();
 
-    // If no preview pane, check for an info bar
-    if ( !iLayoutFlags.IsSet( ECalenContainerPreview ))
-        {
-        CheckInfobarL();
-        }
-
+    CheckInfobarL();
+    
     TRACE_EXIT_POINT;
     }
 
@@ -163,10 +159,9 @@
     TRACE_ENTRY_POINT;
 
     TRect previewRect = iContainer.PreviewRectL();
-    if ( !iContainer.PreviewRectL().IsEmpty() )
+    if (!iContainer.PreviewRectL().IsEmpty() && iContainer.PreviewPane())
         {
-        iLayoutFlags.Set( ECalenContainerPreview );
-        iLayoutFlags.Clear( ECalenContainerInfobar );
+        iLayoutFlags.Set( ECalenContainerPreview );        
         }
     
     
@@ -200,8 +195,7 @@
             {
             iInfobar = infoBarControl;
             // If the infobar exists, set the container window and activate.
-            iLayoutFlags.Set( ECalenContainerInfobar );
-            iLayoutFlags.Clear( ECalenContainerPreview );
+            iLayoutFlags.Set( ECalenContainerInfobar );           
             iInfobar->SetContainerWindowL( iContainer );
             }
        }