[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)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Tue, 19 Oct 2021 08:08:07 +0000 (17:08 +0900)
commitc8d758d36ff22d8958e31714a2673caf94afb079
treef0ff2cda75b134c32eee1319825d2d4c261b7155
parentc74e767b1d58a89b39376fa62b64687203ed8113
[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