Fixed unparenting a layout item from a layout group 34/183134/4
authorDavid Steele <david.steele@samsung.com>
Mon, 2 Jul 2018 15:42:11 +0000 (16:42 +0100)
committerDavid Steele <david.steele@samsung.com>
Wed, 4 Jul 2018 09:52:47 +0000 (10:52 +0100)
commit37a14107465fec745bb7bed1b53c5155f73a310e
tree0a16184822e7f8207b6e9bf2cafa79a27edd54a6
parent1498b458e65cce375898c232cfa87c831b1f1c6b
Fixed unparenting a layout item from a layout group

Unparenting a layout item from a layout group did not actually remove the
child from the parent, which if a new layout were set on a container, resulted
in the container having 2 separate layouts in it's parent layout.

Changed the Layout Parent/Child interfaces to allow LayoutItem
to remove itself from a LayoutGroup without explicitly referencing it's subclass.

Change-Id: Idf6d7813ab5a440dfbf44a8bbe46df2ca3698d64
Signed-off-by: David Steele <david.steele@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-Layouting.cpp
dali-toolkit/devel-api/file.list
dali-toolkit/devel-api/layouting/layout-child-impl.h [new file with mode: 0644]
dali-toolkit/devel-api/layouting/layout-group-impl.cpp
dali-toolkit/devel-api/layouting/layout-group-impl.h
dali-toolkit/devel-api/layouting/layout-item-impl.cpp
dali-toolkit/devel-api/layouting/layout-item-impl.h
dali-toolkit/devel-api/layouting/layout-parent-impl.h