[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)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Tue, 19 Oct 2021 07:14:49 +0000 (16:14 +0900)
commit922aa7fd132c276f2bbe26bb41ec13cab021220d
tree919182f72e6b9f097cae6ea7abe394af6b37af99
parent2f6cf3624440c297fbd728baa8db1e065d2ac4c2
[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