[NUI] Fix GridLayout to fill expanded size correctly
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 14 Oct 2021 12:51:18 +0000 (21:51 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 9 Nov 2021 05:57:53 +0000 (14:57 +0900)
commit012f3649bd60e2e545b99e1808a34f60a2d0c1ea
tree2581c54f045ba526d746f1ae3c6e21299b0b155e
parente1da393ed6dc30f3bdb40371eba989448f58d12b
[NUI] Fix GridLayout to fill expanded size correctly

Previously, child did not fill to the expanded size if the child had
positive Width/HeightSpecification.

e.g. Let child's WidthSpecification = 100
     Let child's HeightSpecification = 100
     Let child's expanded size (row and col's size) be (200, 200)
     Let child's Stretch mode be ExpandAndFill.
     (child should fill to the expanded size)
     Then, child's size became (100, 100) instead of fill to (200, 200)

Changing child's Width/HeightSpecification to assign
MeasuredWidth/Height could cause child's size changed.
Moreover, the changed size was not recalculated to the expanded size.

Now, child's size change is reverted so the child's size is not changed.
But the way of fixing this bug should be modified in a better way later.

e.g. Assigning MeasuredWidth/Height without changing
     Width/HeightSpecification.
src/Tizen.NUI/src/public/Layouting/GridLayout.cs