Changed Control::SetLayout to handle empty layouts 56/182256/2
authorDavid Steele <david.steele@samsung.com>
Thu, 21 Jun 2018 21:08:23 +0000 (22:08 +0100)
committerDavid Steele <david.steele@samsung.com>
Mon, 2 Jul 2018 10:01:00 +0000 (11:01 +0100)
commit1498b458e65cce375898c232cfa87c831b1f1c6b
treee24caf5ad7c6a44236cac4f65fe9cbbbd57d827f
parent63ca57aca66eafc6b4daaac7c60fcad31e598804
Changed Control::SetLayout to handle empty layouts

Setting an empty layout now removes the layout from the control
and unparents it's children from that layout, orphaning them (removes
them from the layout hierarchy - they will no longer get measured/laid out).

Change-Id: Ice74ad251111f59c34b65f233ad288c412bb6883
Signed-off-by: David Steele <david.steele@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-Layouting.cpp
dali-toolkit/devel-api/controls/control-devel.cpp
dali-toolkit/internal/controls/control/control-data-impl.cpp
dali-toolkit/internal/controls/control/control-data-impl.h