* It may be needed by the new visual to relayout its contents. i.e TextVisual needs it.
Change-Id: I04498ed72b2ef94cccc2b3135adb66f5d2862e2d
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
{
RegisterVisual( Toolkit::Control::Property::BACKGROUND, visual );
visual.SetDepthIndex( DepthIndex::BACKGROUND );
+
+ // Trigger a size negotiation request that may be needed by the new visual to relayout its contents.
+ RelayoutRequest();
}
}
{
UnregisterVisual( Toolkit::Control::Property::BACKGROUND );
mImpl->mBackgroundColor = Color::TRANSPARENT;
+
+ // Trigger a size negotiation request that may be needed when unregistering a visual.
+ RelayoutRequest();
}
void Control::EnableGestureDetection(Gesture::Type type)