修复层叠窗口获取大小bug

Signed-off-by: xingyanan <xingyanan2@huawei.com>
Change-Id: I710d66d6c15f56bdac8573c6826a87c952ca7dcd
This commit is contained in:
xingyanan
2022-03-11 10:04:12 +08:00
parent f996e40e82
commit c2431d529d
@@ -374,7 +374,7 @@ Rect WindowLayoutPolicyCascade::GetCurCascadeRect(const sptr<WindowNode>& node)
WLOGFI("GetCurCascadeRect id: %{public}d,", (*iter)->GetWindowId());
if ((*iter)->GetWindowType() != WindowType::WINDOW_TYPE_DOCK_SLICE &&
(*iter)->GetWindowId() != node->GetWindowId()) {
auto property = node->GetWindowProperty();
auto property = (*iter)->GetWindowProperty();
if (property != nullptr) {
cascadeRect = property->GetWindowRect();
}