- Accessibility highlight frame should be updated together
when the componet size changes.
- Currently, if the component size changes while the component is still
highlighted, then the frame will remain in its original size.
Change-Id: I995e0ec5907dd23282010e0186a7881335dc48ea
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
container.Add(child, newChildSize);
}
+ if(Accessibility::IsUp())
+ {
+ auto accessible = GetAccessibleObject();
+ if(DALI_LIKELY(accessible))
+ {
+ auto highlightFrame = accessible->GetHighlightActor();
+ if(accessible->GetCurrentlyHighlightedActor() == this->Self() &&
+ highlightFrame.GetProperty<Vector3>(Dali::Actor::Property::SIZE).GetVectorXY() != size)
+ {
+ // TODO : Need to consider how we can reduce this cost
+ highlightFrame.SetProperty(Actor::Property::SIZE, size);
+ container.Add(highlightFrame, size);
+ }
+ }
+ }
+
Toolkit::Visual::Base visual = mImpl->GetVisual(Toolkit::Control::Property::BACKGROUND);
if(visual)
{