uifw/AvKon/src/AknPopupField.cpp
branchRCL_3
changeset 9 aabf2c525e0f
parent 4 8ca85d2f0db7
child 15 08e69e956a8c
equal deleted inserted replaced
4:8ca85d2f0db7 9:aabf2c525e0f
   441             break;
   441             break;
   442             }
   442             }
   443     case EAknPopupFieldSelectionListMode:
   443     case EAknPopupFieldSelectionListMode:
   444             {
   444             {
   445             __ASSERT_DEBUG(iSelectionList != NULL, Panic(EAknPanicPopupFieldSelectionListDoesntExist));
   445             __ASSERT_DEBUG(iSelectionList != NULL, Panic(EAknPanicPopupFieldSelectionListDoesntExist));
   446             iSelectionList->SetRect(rect);
   446             // When Form loses focus, If its child control listbox's size or position is not changed, 
       
   447             // do not invoke "iSelectionList->SetRect(rect);". 
       
   448             if ((iSelectionList->Position() != rect.iTl) || (iSelectionList->Size() != rect.Size()))
       
   449                 {
       
   450                 iSelectionList->SetRect(rect);
       
   451                 }
   447             AknsUtils::RegisterControlPosition(this);
   452             AknsUtils::RegisterControlPosition(this);
   448             AknsUtils::RegisterControlPosition(iSelectionList);
   453             AknsUtils::RegisterControlPosition(iSelectionList);
   449             TRect listBoxRect = iExtension->iFormFieldRect; //iSelectionList->Rect();
   454             TRect listBoxRect = iExtension->iFormFieldRect; //iSelectionList->Rect();
   450             listBoxRect.iTl = TPoint(0,0);
   455             listBoxRect.iTl = TPoint(0,0);
   451             // Cannot use KAknsIIDNone here because highlight animation
   456             // Cannot use KAknsIIDNone here because highlight animation