From 49f0201931d39c10bcca7c61c44d3880d6e92d52 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 25 Mar 2012 21:42:57 +0200 Subject: menu/text: realign on size change of control --- src/menu/text.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/menu/text.cpp') diff --git a/src/menu/text.cpp b/src/menu/text.cpp index 301cc62b..39df2e06 100644 --- a/src/menu/text.cpp +++ b/src/menu/text.cpp @@ -106,5 +106,17 @@ namespace usdx { return text; } + + void Text::set_size(const Dimension& size) + { + DrawableControl::set_size(size); + realign(); + } + + void Text::set_size(int width, int height) + { + DrawableControl::set_size(width, height); + realign(); + } }; -- cgit v1.2.3