[NUI] Fix Window.Add and Remove to use Layer.Add and Remove directly
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 29 Apr 2022 01:10:57 +0000 (10:10 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 3 May 2022 09:00:21 +0000 (02:00 -0700)
commit1f65b683930b55909627afd38b5d8341cf7762c2
tree77f861fa984f17a4eb68d23f7edc328dc87508de
parent9daa55a4f131e18b94a964e4460611918b8506b6
[NUI] Fix Window.Add and Remove to use Layer.Add and Remove directly

Previously, Window.Add and Remove did not use Layer.Add and Remove.
This caused LayoutCount was updated duplicately.
e.g.
- Calling window.Remove(view) twice decreases LayoutCount duplicately.
Moreover, users could not get ChildAdded and ChildRemoved events from
Window's RootLayer.

Now, Window.Add and Remove use Layer.Add and Remove directly.
src/Tizen.NUI/src/public/Window/Window.cs