[NUI] Fix Weight calculation in LinearLayout
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 10 Nov 2021 12:46:19 +0000 (21:46 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 11 Nov 2021 06:23:09 +0000 (15:23 +0900)
commit635bde261b683f149e86ebe0e94a7e041bdbc4d8
tree70f9c70ca55e5d69c7589af0066bb89196bfb8d5
parentfdcb3be1e2454f6ecd0748c1c56d2e6b23de7cc8
[NUI] Fix Weight calculation in LinearLayout

View's Weight is considered in LinearLayout's calculation only if the
View's Specification is MatchParent.
Because Weight is used to divide the parent's space to each child.

Previously, WrapContent View's Weight was also added to the sum of
Weights.
This caused the weighted View's size was calculated incorrectly.

Now, only MatchParent View's Weight is added to the sum of Weights.
As a result, the weighted View's size is calculated correctly.
src/Tizen.NUI/src/public/Layouting/LinearLayout.cs