Browse Source

Small fix to DropDownList.

Lasse Öörni 15 years ago
parent
commit
93632f9e54
1 changed files with 1 additions and 0 deletions
  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
     // By default grow the popup and listview according to the items
     mListView->getScrollPanel()->setLayout(O_VERTICAL, LM_RESIZECHILDREN, LM_RESIZEELEMENT);
     mListView->getScrollPanel()->setLayout(O_VERTICAL, LM_RESIZECHILDREN, LM_RESIZEELEMENT);
     mListView->setLayout(O_VERTICAL, LM_RESIZECHILDREN, LM_RESIZEELEMENT);
     mListView->setLayout(O_VERTICAL, LM_RESIZECHILDREN, LM_RESIZEELEMENT);
+    mListView->setFocusMode(FM_RESETFOCUS);
     mPopup->addChild(mListView);
     mPopup->addChild(mListView);
     mPopup->setLayout(O_VERTICAL, LM_RESIZECHILDREN, LM_RESIZEELEMENT);
     mPopup->setLayout(O_VERTICAL, LM_RESIZECHILDREN, LM_RESIZEELEMENT);
     mPlaceholder = new UIElement();
     mPlaceholder = new UIElement();