mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 14:49:59 +00:00
!1251 修改resize时通知系统面板显示的panelFlag获取方式
Merge pull request !1251 from guojin31/master
This commit is contained in:
commit
c323a8ae35
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user