From efe6141500ea03be103b0329b51ca091fbce4922 Mon Sep 17 00:00:00 2001 From: yang-yuanzhou Date: Sat, 2 Mar 2024 10:15:22 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:=20>>=20Description:=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=A0=8F=E6=8C=89=E9=92=AE=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E4=B8=8D=E5=AE=8C=E5=85=A8=20>>=20Sig:=20SIG=5FApplicationFram?= =?UTF-8?q?ework=20>>=20Feature=20or=20Bugfix:BugFix=20>>=20Binary=20Sourc?= =?UTF-8?q?e:No=20>>=20TDD:(=E8=AF=84=E4=BC=B0=E4=B8=8D=E6=B6=89=E5=8F=8A)?= =?UTF-8?q?=20>>=20XTS:(=E8=AF=84=E4=BC=B0=E4=B8=8D=E6=B6=89=E5=8F=8A)=20>?= =?UTF-8?q?>=20=E9=A2=84=E6=B5=8B=E8=AF=95:(Pass/Fail/=E8=AF=84=E4=BC=B0?= =?UTF-8?q?=E4=B8=8D=E6=B6=89=E5=8F=8A)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangyuanzhou --- .../enhance/container_modal_pattern_enhance.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frameworks/core/components_ng/pattern/container_modal/enhance/container_modal_pattern_enhance.cpp b/frameworks/core/components_ng/pattern/container_modal/enhance/container_modal_pattern_enhance.cpp index fc3f8ae647c..00913b2d44c 100755 --- a/frameworks/core/components_ng/pattern/container_modal/enhance/container_modal_pattern_enhance.cpp +++ b/frameworks/core/components_ng/pattern/container_modal/enhance/container_modal_pattern_enhance.cpp @@ -262,7 +262,7 @@ void ContainerModalPatternEnhance::UpdateTitleInTargetPos(bool isShow, int32_t h auto buttonsContext = controlButtonsNode->GetRenderContext(); CHECK_NULL_VOID(buttonsContext); - auto titlePopupDistance = CONTAINER_TITLE_HEIGHT.ConvertToPx(); + auto titlePopupDistance = titleHeight_.ConvertToPx(); AnimationOption option; option.SetDuration(TITLE_POPUP_DURATION); option.SetCurve(Curves::EASE_IN_OUT); @@ -286,8 +286,7 @@ void ContainerModalPatternEnhance::UpdateTitleInTargetPos(bool isShow, int32_t h [floatingContext, buttonsContext, titlePopupDistance, height]() { floatingContext->OnTransformTranslateUpdate({ 0.0f, static_cast(titlePopupDistance)- height, 0.0f }); - buttonsContext->OnTransformTranslateUpdate({ 0.0f, static_cast(titlePopupDistance) - height, - 0.0f }); + buttonsContext->OnTransformTranslateUpdate({ 0.0f, 0.0f, 0.0f }); }, [floatingLayoutProperty]() { floatingLayoutProperty->UpdateVisibility(VisibleType::GONE); -- Gitee