From 2c81a1063d956cbe49b3460076b1ce3ef6505518 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sat, 16 Oct 2010 15:07:20 +0200 Subject: merge pvr-testing2 svn rev 32591 into trunk --- guilib/GUILabelControl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'guilib/GUILabelControl.cpp') diff --git a/guilib/GUILabelControl.cpp b/guilib/GUILabelControl.cpp index f7e53b3ce4..9ef7ec3a42 100644 --- a/guilib/GUILabelControl.cpp +++ b/guilib/GUILabelControl.cpp @@ -139,6 +139,13 @@ float CGUILabelControl::GetWidth() const return m_width; } +void CGUILabelControl::SetWidth(float width) +{ + m_width = width; + m_label.SetMaxRect(m_posX, m_posY, m_width, m_height); + CGUIControl::SetWidth(m_width); +} + bool CGUILabelControl::OnMessage(CGUIMessage& message) { if ( message.GetControlId() == GetID() ) -- cgit v1.2.3