!1251 修改resize时通知系统面板显示的panelFlag获取方式

Merge pull request !1251 from guojin31/master
This commit is contained in:
openharmony_ci 2024-06-17 09:50:47 +00:00 committed by Gitee
commit c323a8ae35
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -168,7 +168,7 @@ napi_value JsPanel::Resize(napi_env env, napi_callback_info info)
auto exec = [ctxt](AsyncCall::Context *ctx) {
CHECK_RETURN_VOID(ctxt->inputMethodPanel != nullptr, "inputMethodPanel_ is nullptr.");
InputMethodAbility::GetInstance()->ShowSysPanel(ctxt->inputMethodPanel, ctxt->panelFlag);
InputMethodAbility::GetInstance()->ShowSysPanel(ctxt->inputMethodPanel, ctxt->inputMethodPanel->GetPanelFlag());
auto code = ctxt->inputMethodPanel->Resize(ctxt->width, ctxt->height);
if (code == ErrorCode::NO_ERROR) {
ctxt->SetState(napi_ok);