javauis/lcdui_akn/lcdui/src/CMIDList.cpp
branchRCL_3
changeset 21 4376525cdefb
parent 17 0fd27995241b
equal deleted inserted replaced
19:71c436fe3ce0 21:4376525cdefb
  1776         listBox->SetListBoxObserver(this);
  1776         listBox->SetListBoxObserver(this);
  1777         listBox->ScrollBarFrame()->SetScrollBarFrameObserver(this);
  1777         listBox->ScrollBarFrame()->SetScrollBarFrameObserver(this);
  1778 
  1778 
  1779         // We need avoid stretching list's elements. This prevents problems
  1779         // We need avoid stretching list's elements. This prevents problems
  1780         // with icon overlaying and bad wrapping.
  1780         // with icon overlaying and bad wrapping.
  1781         if(type < EDouble2Style)
  1781         if (type < EDouble2Style)
  1782         {
  1782         {
  1783             CEikColumnListBox* clb =
  1783             CEikColumnListBox* clb =
  1784                 (static_cast<CEikColumnListBox*>(listBox));
  1784                 (static_cast<CEikColumnListBox*>(listBox));
  1785             if(clb)
  1785             if (clb)
  1786             {
  1786             {
  1787                 clb->EnableStretching(EFalse);
  1787                 clb->EnableStretching(EFalse);
  1788             }
  1788             }
  1789         }
  1789         }
  1790         else
  1790         else
  1791         {
  1791         {
  1792             CEikFormattedCellListBox* fclb =
  1792             CEikFormattedCellListBox* fclb =
  1793                 (static_cast<CEikFormattedCellListBox*>(listBox));
  1793                 (static_cast<CEikFormattedCellListBox*>(listBox));
  1794             if(fclb)
  1794             if (fclb)
  1795             {
  1795             {
  1796                 fclb->EnableStretching(EFalse);
  1796                 fclb->EnableStretching(EFalse);
  1797             }
  1797             }
  1798         }
  1798         }
  1799 
  1799