equal
deleted
inserted
replaced
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 // ----------------------------------------------------------------------------- |