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 1e55ba0f2c12d31edf274d634bcd50898fef1922..d6ff3ab2976f66ade810d534984937d0aa1a86aa 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);
-  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 );