uifw/AknGlobalUI/OldStyleNotif/Src/aknmessagereaderlongpressdetector.cpp
branchRCL_3
changeset 23 3d340a0166ff
parent 0 2f259fa3e83a
child 55 aecbbf00d063
--- a/uifw/AknGlobalUI/OldStyleNotif/Src/aknmessagereaderlongpressdetector.cpp	Tue Apr 27 16:55:05 2010 +0300
+++ b/uifw/AknGlobalUI/OldStyleNotif/Src/aknmessagereaderlongpressdetector.cpp	Tue May 11 16:27:42 2010 +0300
@@ -461,22 +461,17 @@
             
             if (Layout_Meta_Data::IsLandscapeOrientation())
                 {
-                TAknWindowComponentLayout rightAreaLayout(
-                    AknLayoutScalable_Avkon::area_side_right_pane(0));
-                    
-                layoutRect.LayoutRect(
-                        containerRect,
-                        TAknWindowComponentLayout::Compose(
-                                    rightAreaLayout,
-                                    AknLayoutScalable_Avkon::sctrl_sk_bottom_pane()).LayoutLine());
-                
-                TRect bottomSKRect(layoutRect.Rect());
+                layoutRect.LayoutRect(containerRect,
+                        AknLayoutScalable_Avkon::popup_sk_window_g1(0));
 
-                layoutRect.LayoutRect(
-                        bottomSKRect,
-                        AknLayoutScalable_Avkon::aid_touch_sctrl_bottom().LayoutLine());
-                
-                button1Rect = layoutRect.Rect();
+                // Button widths are calculated based on cba area width
+                // margin width is taken from layout
+                TInt margin = layoutRect.Rect().iTl.iX - containerRect.iTl.iX;
+                TInt buttonWidth = (containerRect.Width() - margin * 2) / 2;
+                TSize buttonSize(buttonWidth, layoutRect.Rect().Height());
+
+                button1Rect = TRect(TPoint(containerRect.iTl.iX + margin,
+                        layoutRect.Rect().iTl.iY), buttonSize);
                 }
             else
                 {