uifw/AvKon/src/akndiscreetpopupdrawer.cpp
branchRCL_3
changeset 15 08e69e956a8c
parent 4 8ca85d2f0db7
child 55 aecbbf00d063
--- a/uifw/AvKon/src/akndiscreetpopupdrawer.cpp	Mon Mar 15 12:41:34 2010 +0200
+++ b/uifw/AvKon/src/akndiscreetpopupdrawer.cpp	Wed Mar 31 21:59:52 2010 +0300
@@ -219,7 +219,14 @@
     {
     // draw background of the popup 
     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
-    AknsDrawUtils::DrawFrame( skin, aGc, aRect, aRect, 
+    TAknLayoutRect innerLayout;
+    // Use bg_popup_preview_window_pane_g1() for getting innerRect, 
+    // no need to create a new layout id for discreet popup.
+    innerLayout.LayoutRect( aRect, 
+            	AknLayoutScalable_Avkon::bg_popup_preview_window_pane_g1() );        
+    TRect innerRect = innerLayout.Rect();  
+    
+    AknsDrawUtils::DrawFrame( skin, aGc, aRect, innerRect, 
         KAknsIIDQsnFrPopupPreview, KAknsIIDDefault );
     
     // Draw the texts