[NUI] Fix Window.Dispose and Layer.LayoutCount
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 25 Apr 2022 08:28:49 +0000 (17:28 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 26 Apr 2022 04:41:13 +0000 (13:41 +0900)
commit81a6e5da543503498feefe37f4864f8481137f25
tree9e6382524440126bd2aac7579a828d0e748fd750
parentdd66a92bc163146f5bfc9f557ff055639079a925
[NUI] Fix Window.Dispose and Layer.LayoutCount

Since Layer.Dispose updates LayoutController.LayoutCount,
LayoutController.Dispose should be called after all layers' Dispose are
called in Window.Dispose.

When a layer's LayoutCount is set, it should update its
LayoutController.LayoutCount by the difference between new and current
LayoutCount.
src/Tizen.NUI/src/public/Common/Layer.cs
src/Tizen.NUI/src/public/Window/Window.cs