Fix KeyboardFocus indicator alignment 06/54006/2
authorTom Robinson <tom.robinson@samsung.com>
Thu, 10 Dec 2015 16:40:28 +0000 (16:40 +0000)
committerTom Robinson <tom.robinson@samsung.com>
Thu, 10 Dec 2015 16:43:17 +0000 (08:43 -0800)
This issue caused the KeyboardFocus indicator to appear offset for some nested layouts. This is due to the wrong position inheritance mode being used.

Change-Id: I204c6d4b9074077a12e68eb2961d0c3ceebbdbd4

dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp

index 1e55ba0..d6ff3ab 100644 (file)
@@ -458,8 +458,7 @@ void KeyboardFocusManager::CreateDefaultFocusIndicatorActor()
 {
   // Create a focus indicator actor shared by all the keyboard focusable actors
   Toolkit::ImageView focusIndicator = Toolkit::ImageView::New(FOCUS_BORDER_IMAGE_PATH);
 {
   // Create a focus indicator actor shared by all the keyboard focusable actors
   Toolkit::ImageView focusIndicator = Toolkit::ImageView::New(FOCUS_BORDER_IMAGE_PATH);
-  focusIndicator.SetPositionInheritanceMode( Dali::USE_PARENT_POSITION_PLUS_LOCAL_POSITION );
-  focusIndicator.SetPosition(Vector3(0.0f, 0.0f, 1.0f));
+  focusIndicator.SetPositionInheritanceMode( Dali::USE_PARENT_POSITION );
 
   // Apply size constraint to the focus indicator
   focusIndicator.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
 
   // Apply size constraint to the focus indicator
   focusIndicator.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );