diff --git a/components/widgets/box.hpp b/components/widgets/box.hpp index 40e76aca0..ccdc5784b 100644 --- a/components/widgets/box.hpp +++ b/components/widgets/box.hpp @@ -12,6 +12,8 @@ namespace Gui class AutoSizedWidget { public: + AutoSizedWidget() : mExpandDirection(MyGUI::Align::Right) {} + virtual MyGUI::IntSize getRequestedSize() = 0; protected: