From d4a07cf5ebb91eb2cdc395d920fadf4c6e5a7008 Mon Sep 17 00:00:00 2001 From: hemenghao Date: Fri, 16 Aug 2024 11:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E6=8B=94=E7=89=A9=E7=90=86=E9=94=AE?= =?UTF-8?q?=E7=9B=98flag=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hemenghao --- frameworks/js/napi/inputmethodability/js_panel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/js/napi/inputmethodability/js_panel.cpp b/frameworks/js/napi/inputmethodability/js_panel.cpp index 4c7dc83d..cdcaed30 100644 --- a/frameworks/js/napi/inputmethodability/js_panel.cpp +++ b/frameworks/js/napi/inputmethodability/js_panel.cpp @@ -442,10 +442,10 @@ napi_value JsPanel::AdjustPanelRect(napi_env env, napi_callback_info info) } SysPanelStatus sysPanelStatus; if (ctxt->inputMethodPanel->IsDisplayPortrait()) { - sysPanelStatus = { false, ctxt->inputMethodPanel->GetPanelFlag(), ctxt->layoutParams.portraitRect.width_, + sysPanelStatus = { false, ctxt->panelFlag, ctxt->layoutParams.portraitRect.width_, ctxt->layoutParams.portraitRect.height_ }; } else { - sysPanelStatus = { false, ctxt->inputMethodPanel->GetPanelFlag(), ctxt->layoutParams.landscapeRect.width_, + sysPanelStatus = { false, ctxt->panelFlag, ctxt->layoutParams.landscapeRect.width_, ctxt->layoutParams.landscapeRect.height_ }; } InputMethodAbility::GetInstance()->NotifyPanelStatus(ctxt->inputMethodPanel, sysPanelStatus);