(ImageView) if no padding, then do not set the transform 62/185062/2
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 25 Jul 2018 18:24:30 +0000 (19:24 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 25 Jul 2018 18:43:05 +0000 (19:43 +0100)
commit4ae4f0f77dbc540cfe2bb48165838fd99ffbd132
tree6259892a207e70e5927ea063896ed690b83c6657
parentbe89a128154f4eb35ed88bbd03d446ab7c41cf64
(ImageView) if no padding, then do not set the transform

Previously, we hardcoded the transform every time even if we didn't need to.
This inadvertantly meant that we could not do some animations.

Now, we just set the transform if we've got padding or the fitting-mode
is set to FIT_KEEPT_ASPECT_RATIO.

Change-Id: Ie15c79bb547ced3399851e33a11704fe869d31f6
automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp
dali-toolkit/internal/controls/image-view/image-view-impl.cpp