Fix ImageView Padding and Margin issues 81/181981/16
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 19 Jun 2018 09:47:56 +0000 (18:47 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 5 Jul 2018 07:37:23 +0000 (16:37 +0900)
commit5daf80c30657d359f5eb95a00dc9fe7c50180cda
tree48999cae280c2846b9ab7bc1e7cad93bfe7ade4b
parent48f47cc7a6cad034d14f571e8b5839d678cde799
Fix ImageView Padding and Margin issues

- Currently padding does not apply to ImageView
  because the default Fitting Mode of ImageVisual have changed to FittingMode::FILL,
  so ImageVisual does not transform anything on ImageView::OnRelayout().

- Trigger to call Relayout when setting Margin and Padding.

- Removed SetBackgroundVisual() in control-impl.cpp as before,
  because it caused an incorrect behavior.

Change-Id: Ic9090180caec59dc5a5f0d63bbb95757f18be0ed
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp
dali-toolkit/internal/controls/control/control-data-impl.cpp
dali-toolkit/internal/controls/image-view/image-view-impl.cpp
dali-toolkit/public-api/controls/control-impl.cpp