@ -72,6 +72,7 @@ namespace Gui
button->getSubWidgetText()->setTextAlign(MyGUI::Align::Left);
button->eventMouseWheel += MyGUI::newDelegate(this, &MWList::onMouseWheelMoved);
button->eventMouseButtonClick += MyGUI::newDelegate(this, &MWList::onItemSelected);
button->setNeedKeyFocus(true);
int height = button->getTextSize().height;
button->setSize(MyGUI::IntSize(button->getSize().width, height));