From 48a2ad68052fcd7c400335c4a3fcedbf955c27a2 Mon Sep 17 00:00:00 2001 From: guyuanzhang Date: Mon, 7 Jun 2021 19:48:58 +0800 Subject: [PATCH] Description:fix image Invalidate err when auto size Sig:graphic Feature or Bugfix:Feature Binary Source:No Signed-off-by: guyuanzhang --- frameworks/components/ui_image_view.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/components/ui_image_view.cpp b/frameworks/components/ui_image_view.cpp index 30807c0..25b3723 100755 --- a/frameworks/components/ui_image_view.cpp +++ b/frameworks/components/ui_image_view.cpp @@ -378,6 +378,7 @@ void UIImageView::ReMeasure() colorFormat_ = header.colorMode; if (autoEnable_) { + Invalidate(); Resize(imageWidth_, imageHeight_); Invalidate(); } @@ -421,4 +422,4 @@ void UIImageView::RemoveAndStopGifAnimator() } } #endif -} // namespace OHOS \ No newline at end of file +} // namespace OHOS -- GitLab