[NUI] Fix ContentPage to calculate AppBar and Content size correctly
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 18 Oct 2021 11:16:09 +0000 (20:16 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 9 Nov 2021 05:57:53 +0000 (14:57 +0900)
commit2695b7535730827bb9cb4cf9ad669671f87e56ac
treef930e559c0fea0b309c393e43fd6a789a9291efb
parent5d09828f8c9beef7ebc0455cff0d043d6bae217a
[NUI] Fix ContentPage to calculate AppBar and Content size correctly

Previously, the size of AppBar and Content was set by setting Size2D
property.
This caused AppBar and Content to change their
Width/HeightSpecification.
Consequently, the size of AppBar and Content was not recalculated when
window size was changed.

Now, the size of AppBar and Content is set by SetSize() method.
Since SetSize() method does not change Width/HeightSpecification, the
size of AppBar and Content is recalculated correctly when window size is
changed.
src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs