From 13df0abbfe867574ca79a7863a56f3c7811bef2b Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Thu, 15 Feb 2024 15:31:17 +0900 Subject: [PATCH] [NUI][API11] Fix error if LottieAnimationView set BackgroundData before set URL Since LottieAnimationView.URL property change whole Visual property by itself, CornerRadius / Borderline properties become ignored when we set URL. ``` lav = new LottieAnimationView(); lav.CornerRadius = new Vector4(100.0f, 100.0f, 100.0f, 100.0f); lav.URL = "~~~.json"; ///< CornerRadius information ignored. ``` To avoid this case, let we ensure to set CornerRadius / Borderline if we set URL Same PR with #5951 Signed-off-by: Eunki, Hong --- .../src/public/BaseComponents/LottieAnimationView.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs b/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs index 7ce0558..f280826 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs @@ -198,6 +198,18 @@ namespace Tizen.NUI.BaseComponents Image = map; + if (backgroundExtraData != null) + { + if (backgroundExtraData.CornerRadius != null) + { + UpdateBackgroundExtraData(BackgroundExtraDataUpdatedFlag.ContentsCornerRadius); + } + if (backgroundExtraData.BorderlineWidth > 0.0f) + { + UpdateBackgroundExtraData(BackgroundExtraDataUpdatedFlag.ContentsBorderline); + } + } + // All states applied well. currentStates.changed = false; -- 2.7.4