mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-21 09:55:23 -04:00
fix dialog inspector bug
Signed-off-by: sunfei <sunfei.sun@huawei.com> Change-Id: I8d6354d142bfeaeb1852577fe969d7f6b46af106
This commit is contained in:
@@ -284,6 +284,10 @@ void JsInspectorManager::GetNodeJSONStrMap()
|
||||
LOGE("GetAccessibilityNodeFromPage is null, nodeId: %{public}d", nodeId);
|
||||
continue;
|
||||
}
|
||||
if (node->GetTag() == "inspectDialog") {
|
||||
RemoveAccessibilityNodes(node);
|
||||
continue;
|
||||
}
|
||||
auto jsonNode = JsonUtil::Create(true);
|
||||
auto jsonNodeArray = JsonUtil::CreateArray(true);
|
||||
jsonNode->Put(INSPECTOR_TYPE, node->GetTag().c_str());
|
||||
|
||||
@@ -404,8 +404,6 @@ void RenderBox::OnPaintFinish()
|
||||
parent->SetLeft(node->GetLeft());
|
||||
parent->SetWidth(node->GetWidth());
|
||||
parent->SetHeight(node->GetHeight());
|
||||
auto mananger = context->GetAccessibilityManager();
|
||||
mananger->RemoveAccessibilityNodes(node);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user