diff --git a/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp b/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp index 245d9ebb7d8b9ecdd52ca3780037c10b402e84a2..e7f6a1cc101fde12fe21445115de44b263bc3aac 100644 --- a/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp +++ b/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp @@ -46,6 +46,9 @@ void SecCompInfoHelper::AdjustSecCompRect(SecCompBase* comp, float scale) SC_LOG_DEBUG(LABEL, "After adjust x %{public}f, y %{public}f, width %{public}f, height %{public}f", comp->rect_.x_, comp->rect_.y_, comp->rect_.width_, comp->rect_.height_); + + comp->windowRect_.width_ *= scale; + comp->windowRect_.height_ *= scale; } SecCompBase* SecCompInfoHelper::ParseComponent(SecCompType type, const nlohmann::json& jsonComponent)