[NUI] Fix MarginProperty and PaddingProperty with Layout
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 29 Apr 2022 08:10:14 +0000 (17:10 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 3 May 2022 09:00:21 +0000 (02:00 -0700)
commitf9661643ef7830ff173bd75e31f5415b67a3f185
treeb6edc0428a95b4653164645a0000e381c6f497f7
parentf84513864be3f504e3fc16698d113955ff581768
[NUI] Fix MarginProperty and PaddingProperty with Layout

View.Margin and Padding refers View.Layout.Margin and Padding.

So if View.Margin and Padding are set with Layout, then
View.Layout.Margin and Padding are set and View.Margin and Padding
become Extents(0, 0, 0, 0).

Previously, the problem was that View.MarginProperty and PaddingProperty
did not support the above logic properly.

Now, to resolve the above issue, View.MarginProperty and PaddingProperty
support the above logic properly.
i.e. Setting View.MarginProperty and PaddingProperty with Layout set
     value to View.Layout.Margin and Padding and also set
     Extents(0, 0, 0, 0) to View.Margin and Padding.
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs
test/Tizen.NUI.LayoutSamples/Tizen.NUI.LayoutSamples/ObjectView.cs