From e4c097b4f7d89fae6b2ed52755bd941df5b907c4 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 25 Sep 2014 19:22:26 +0200 Subject: [PATCH] Fix wrong default ExpandDirection for AutoSizedButton --- components/widgets/box.hpp | 2 ++ 1 file changed, 2 insertions(+) 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: