mmsharing/mmshui/src/musuigeneralview.cpp
branchRCL_3
changeset 16 71306c87785a
parent 11 ff8a573c0e2e
child 21 ce86b6d44a6d
--- a/mmsharing/mmshui/src/musuigeneralview.cpp	Wed Apr 14 15:53:49 2010 +0300
+++ b/mmsharing/mmshui/src/musuigeneralview.cpp	Tue Apr 27 16:34:06 2010 +0300
@@ -865,6 +865,25 @@
     }
 
 // -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+TInt CMusUiGeneralView::ToolbarPlaceHolderWidth() const 
+    { 
+    TInt toolbarPlaceHolderWidth( 0 ); 
+    CAknAppUiBase::TAppUiOrientation orientation = MusAppUi()->AppOrientation(); 
+    if ( !Toolbar()->IsShown() && 
+         orientation == CAknAppUiBase::EAppUiOrientationLandscape &&                        
+         AknLayoutUtils::PenEnabled() ) 
+        { 
+        // In touch UI in EAppUiOrientationLandscape mode the toolbar 
+        // fills the whole lower part of the screen 
+        toolbarPlaceHolderWidth = Toolbar()->Size().iWidth; 
+        } 
+    return toolbarPlaceHolderWidth;       
+    } 
+
+// -----------------------------------------------------------------------------
 // Increase/Decrease background container ordinal so that other controls
 // can preceed background
 // -----------------------------------------------------------------------------