uifw/ganes/src/HgList.cpp
branchRCL_3
changeset 9 aabf2c525e0f
parent 4 8ca85d2f0db7
child 10 9f56a4e1b8ab
equal deleted inserted replaced
4:8ca85d2f0db7 9:aabf2c525e0f
    20 #include <ganes/HgList.h>
    20 #include <ganes/HgList.h>
    21 #include <ganes/HgItem.h>
    21 #include <ganes/HgItem.h>
    22 
    22 
    23 #include "HgLayoutData.h"
    23 #include "HgLayoutData.h"
    24 #include "HgDrawUtils.h"
    24 #include "HgDrawUtils.h"
       
    25 #include "HgScrollbar.h"
    25 
    26 
    26 #include <aknphysics.h>
    27 #include <aknphysics.h>
    27 
    28 
    28 #include "HgConstants.h"
    29 #include "HgConstants.h"
    29 #include "HgMarquee.h"
    30 #include "HgMarquee.h"
   381 // -----------------------------------------------------------------------------
   382 // -----------------------------------------------------------------------------
   382 //
   383 //
   383 TRect CHgList::ListRect() const
   384 TRect CHgList::ListRect() const
   384     {
   385     {
   385     TRect rect(iListOffset, TSize(iWidth,iHeight));
   386     TRect rect(iListOffset, TSize(iWidth,iHeight));
   386     TAknLayoutRect areaaftersb;
   387     if(!iScrollbar->IsStatic())
   387     areaaftersb.LayoutRect(rect, iLayoutData->BaseLayout());
   388         {
   388     return areaaftersb.Rect();
   389         TAknLayoutRect areaaftersb;
       
   390         areaaftersb.LayoutRect(rect, iLayoutData->BaseLayout());
       
   391         rect = areaaftersb.Rect();
       
   392         }
       
   393     return rect;
   389     }
   394     }
   390 
   395 
   391 // -----------------------------------------------------------------------------
   396 // -----------------------------------------------------------------------------
   392 // CHgList::SelectDefaultItem()
   397 // CHgList::SelectDefaultItem()
   393 // -----------------------------------------------------------------------------
   398 // -----------------------------------------------------------------------------