Explorar o código

Small fix to DropDownList.

Lasse Öörni %!s(int64=15) %!d(string=hai) anos
pai
achega
93632f9e54
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();