mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-21 12:35:22 -04:00
Extension创建的Window不需要设置SurfaceNode的bounds
Signed-off-by: dubj <dubingjian@huawei.com> Change-Id: Icf3f72d8228281fb3777542adf9a1e8818a610ff
This commit is contained in:
@@ -337,6 +337,10 @@ bool WindowLayoutPolicy::IsFullScreenRecentWindowExist(const std::vector<sptr<Wi
|
||||
|
||||
void WindowLayoutPolicy::UpdateSurfaceBounds(const sptr<WindowNode>& node, const Rect& winRect)
|
||||
{
|
||||
if (node->GetWindowType() == WindowType::WINDOW_TYPE_APP_COMPONENT) {
|
||||
WLOGFI("not need to update bounds");
|
||||
return;
|
||||
}
|
||||
if (node->leashWinSurfaceNode_) {
|
||||
node->leashWinSurfaceNode_->SetBounds(winRect.posX_, winRect.posY_, winRect.width_, winRect.height_);
|
||||
if (node->startingWinSurfaceNode_) {
|
||||
|
||||
Reference in New Issue
Block a user