Pārlūkot izejas kodu

Small fix to DropDownList.

Lasse Öörni 15 gadi atpakaļ
vecāks
revīzija
93632f9e54
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      Engine/UI/DropDownList.cpp

+ 1 - 0
Engine/UI/DropDownList.cpp

@@ -39,6 +39,7 @@ DropDownList::DropDownList(const std::string& name) :
     // By default grow the popup and listview according to the items
     mListView->getScrollPanel()->setLayout(O_VERTICAL, LM_RESIZECHILDREN, LM_RESIZEELEMENT);
     mListView->setLayout(O_VERTICAL, LM_RESIZECHILDREN, LM_RESIZEELEMENT);
+    mListView->setFocusMode(FM_RESETFOCUS);
     mPopup->addChild(mListView);
     mPopup->setLayout(O_VERTICAL, LM_RESIZECHILDREN, LM_RESIZEELEMENT);
     mPlaceholder = new UIElement();