revert All Views in a tree can be layouts patch (dalihub)
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
// Only give children a layout if their parent is an explicit container or a pure View.
// Pure View meaning not derived from a View, e.g a Legacy container.
// layoutSet flag is true when the View became a layout using the SetLayout API
// Only give children a layout if their parent is an explicit container or a pure View.
// Pure View meaning not derived from a View, e.g a Legacy container.
// layoutSet flag is true when the View became a layout using the SetLayout API
- if ((true == layoutSet || GetType() == typeof(View)) && null == child.Layout)
+ if (true == layoutSet && null == child.Layout)
{
Log.Info("NUI", "Add child Parent[" + Name + "] Layout set\n");
// If child is a View or explicitly set to require layouting then set child as a LayoutGroup.
{
Log.Info("NUI", "Add child Parent[" + Name + "] Layout set\n");
// If child is a View or explicitly set to require layouting then set child as a LayoutGroup.