[NUI] Disable desired size when image loading fail
authorSunghyun Kim <scholb.kim@samsung.com>
Fri, 28 May 2021 04:06:42 +0000 (13:06 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 28 May 2021 04:18:39 +0000 (13:18 +0900)
commit052cf5eaf14045163d8f91bf2f56a5a80cd537d5
treeac873c80f6925d687d575e0e11ea6c47370c918b
parent9882a86468e53fa242e72ee5f457eb4bd53ffdf6
[NUI] Disable desired size when image loading fail

When ImageLoading is failed, GetOriginalImageSize() returns zero size.
In this case, Calculating for fittingMode is able to make error because it use invalid size.
To avoid this problem, i added this patch.
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs