[NUI] Fix to calculate LinearLayout's MatchParent children correctly
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 20 May 2021 12:59:09 +0000 (21:59 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Mon, 24 May 2021 08:55:37 +0000 (17:55 +0900)
commitcbb29a44db5ccafa0803cab182b6279e346befa1
tree33a0c76de52bfd67d7d3f4b09d650c87dfdf1eec
parent5edd945a87a20d6439082a6ea6ac88e8d8ebac11
[NUI] Fix to calculate LinearLayout's MatchParent children correctly

The followings have been fixed to calculate LinearLayout's MatchParent
children correctly.

- MatchParent child layout is calculated only if LinearLayout has
  positive Specification or MatchParent.

- MatchParent child layout's margin is not shared with other MatchParent
  child layouts.
  e.g.
  LinearLayout has size 100.
  Child layout1 is MatchParent and its margin is 20.
  Child layout2 is MatchParent and its margin is 0.
  Then, child layout1's size is 30 and child layout2's size is 50.

- Setting Width/HeightSpecification has been removed because
  Width/HeightSpecification should preserve the value set by user.

- Typo has been fixed. e.g. width, height
src/Tizen.NUI/src/public/Layouting/LinearLayout.cs