Samsung / TizenFX

C# Device APIs for Tizen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RelativeLayout Issue on DefaultLinearItem and DefaultGridItem.

everLEEst opened this issue · comments

#4160

Currently it has few bug in the sample.

  1. DefaultLinearItem Two Line is not show correctly.
  2. DefaultLinearItem Icon and Extra Margin is not properly applied.
  3. DefaultGridItem text is not property placed.
  4. DefaultGridItem Image cannot be clipped cornerRadius when it's parent is ClipToChildren.

to reproduce 4. DefaultGridItem Image cannot be clipped cornerRadius when it's parent is ClipToChildren.
firstly you need to remove cornerRadius on ImageView on ImageViewStyle of DefaultGridItemStyle.

노란색 영역이 실제 텍스트가 나왔어야 했으나 나오지 않았거나 잘못 위치한 경우이며
빨간 체크는 마진이 적용되지 않은 이슈이고
빨간 동그라미는 코너라디우스가 적용되지 않은 것을 확인할 수 있습니다.

4번은 확인 결과 Box4Shadow 와 CornerRadius ClippingMode 간 간섭 이슈로 보이며 우선 image에도 CornerRadius를 적용하는 것으로 우회하겠습니다.

3번 확인 결과는 다음과 같습니다.

View.Layout이 존재하면, View.Margin은 View.Layout.Margin을 참조하게 됩니다.
ViewStyle.Margin을 Apply할 때 View.MarginProperty에 set을 수행하게 되는데요.
View.MarginProperty의 set에서는 View.Layout.Margin의 값을 변경시켜주지 않고 있어서 문제가 발생하였습니다.

View.MarginProperty의 set에서 View.Layout이 존재하면 View.Layout.Margin의 값을 변경시켜주는 로직을 테스트중에 있습니다.

Padding도 View.Layout이 존재하면 Margin과 동일하게 동작하기 때문에 함께 테스트를 수행중입니다.

1번은 #4219 으로 해결되었습니다.
2번 및 3번은 #4214 으로 해결되었습니다.