From 6cb0a8f8853cdf39032b616a4fe16c4291fb9b3d Mon Sep 17 00:00:00 2001 From: "keonpyo.kong" Date: Tue, 2 Apr 2013 14:15:21 +0900 Subject: [PATCH] Resize Focus visual element Change-Id: Ia504093f9f58d9393407460cb37ba45fae35fa3a Signed-off-by: keonpyo.kong --- src/ui/FUi_Control.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/FUi_Control.cpp b/src/ui/FUi_Control.cpp index 328ade9..46fe25d 100755 --- a/src/ui/FUi_Control.cpp +++ b/src/ui/FUi_Control.cpp @@ -3055,6 +3055,10 @@ _Control::SetBoundsFinal(const FloatRectangle& newBounds, bool changeLayoutBaseR { SetClientBounds(FloatRectangle(0.0f, 0.0f, GetSizeF().width, GetSizeF().height)); } + if (__pFocusVisualElement) + { + __pFocusVisualElement->SetBounds(FloatRectangle(0, 0, __bounds.width, __bounds.height)); + } delegate.OnBoundsChanged(); _Control* pParent = GetParent(); @@ -4973,7 +4977,7 @@ _Control::OnDrawFocus(void) if (__pFocusVisualElement) { - Rectangle rectangle = this->GetBounds(); + Rectangle rectangle = GetBounds(); __pFocusVisualElement->SetBounds(FloatRectangle(0, 0, rectangle.width, rectangle.height)); unique_ptrpCanvas(__pFocusVisualElement->GetCanvasN()); pCanvas->SetBackgroundColor(0x55555555); -- 2.7.4