[NUI] change size specification in changed callback of bindable property (#2516)
authorYeongJong Lee <cleanlyj@naver.com>
Thu, 21 Jan 2021 06:22:09 +0000 (15:22 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Tue, 26 Jan 2021 08:27:40 +0000 (17:27 +0900)
commit699ebc05797f8c9291ea9bcdc36c991c044fec47
treec7ddaf2aa25bec972d900b4bc33eba5bdfc77595
parent697416a806a69fbe3dff748e612ba82e8a108dbe
[NUI] change size specification in changed callback of bindable property (#2516)

If we change size2D by using Size2DProperty, size specification is not
changed. this patch will fix that issue.

Here is sample code:
```cs
View view = new View();
view.Size2D = new Size2D(100, 50);
Tizen.Log.Error("NUI", $"WidthSpecification : {view.WidthSpecification}, HeightSpecification : {view.HeightSpecification}");

View view2 = new View();
view2.SetValue(View.Size2DProperty, new Size2D(100, 50));
Tizen.Log.Error("NUI", $"WidthSpecification : {view2.WidthSpecification}, HeightSpecification : {view2.HeightSpecification}");
```

Before:
```
WidthSpecification : 100, HeightSpecification : 50
WidthSpecification : -2, HeightSpecification : -2
```

After:
```
WidthSpecification : 100, HeightSpecification : 50
WidthSpecification : 100, HeightSpecification : 50
```

Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs