[NUI] Fix to call base.Initialize() of LinearLayouter and GridLayouter (#3338)
authorJaehyun Cho <jaehyun0cho@gmail.com>
Thu, 22 Jul 2021 02:06:08 +0000 (11:06 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 26 Jul 2021 09:00:32 +0000 (18:00 +0900)
commit2dbb444bd16dbeaeb73cda9097243130e95e373d
tree8fac9460e3b89b566592c375d78028426d42b81c
parent0528bd83c2d467cf898bc6cee77ef9d16f3fdddf
[NUI] Fix to call base.Initialize() of LinearLayouter and GridLayouter (#3338)

Previously, base.Initialize() of LinearLayouter and GridLayouter was not
called if source was empty.
This caused Container to be null and caused null reference in
RequestLayout().

Now, it is guaranteed that base.Initialize() of LinearLayouter and
GridLayouter is called.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/GridLayouter.cs
src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/LinearLayouter.cs