From e972e4f27eee91a60054776b36fc0755d6f69598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Tue, 21 May 2019 21:03:10 -0300 Subject: [PATCH] Minor bug fix in UIComboBox. --HG-- branch : dev-css --- src/eepp/ui/uicombobox.cpp | 2 ++ src/eepp/ui/uidropdownlist.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/eepp/ui/uicombobox.cpp b/src/eepp/ui/uicombobox.cpp index 8a3d4a571..2344dd048 100644 --- a/src/eepp/ui/uicombobox.cpp +++ b/src/eepp/ui/uicombobox.cpp @@ -87,6 +87,8 @@ void UIComboBox::loadFromXmlNode(const pugi::xml_node& node) { mDropDownList->loadFromXmlNode( node ); endAttributesTransaction(); + + updateControls(); } Uint32 UIComboBox::onMessage( const NodeMessage * Msg ) { diff --git a/src/eepp/ui/uidropdownlist.cpp b/src/eepp/ui/uidropdownlist.cpp index fb92c0e57..8fa488d26 100644 --- a/src/eepp/ui/uidropdownlist.cpp +++ b/src/eepp/ui/uidropdownlist.cpp @@ -58,9 +58,9 @@ void UIDropDownList::setTheme( UITheme * Theme ) { } void UIDropDownList::onSizeChange() { - UIWidget::onSizeChange(); - onAutoSize(); + + UIWidget::onSizeChange(); } void UIDropDownList::onThemeLoaded() {