mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-21 12:35:22 -04:00
limit drag pos
Signed-off-by: l00574490 <liuqi149@huawei.com> Change-Id: I4ccac014d4b126bb3db6d8ee55403ff745784315
This commit is contained in:
@@ -243,7 +243,8 @@ void WindowLayoutPolicy::LimitWindowSize(const sptr<WindowNode>& node, const Rec
|
||||
}
|
||||
if (WindowHelper::IsMainFloatingWindow(windowType, windowMode)) {
|
||||
winRect.posY_ = std::max(limitRect_.posY_, winRect.posY_);
|
||||
winRect.posY_ = std::min(limitRect_.posY_ + static_cast<int32_t>(limitRect_.height_), winRect.posY_);
|
||||
winRect.posY_ = std::min(limitRect_.posY_ + static_cast<int32_t>(limitRect_.height_ - WINDOW_TITLE_BAR_HEIGHT),
|
||||
winRect.posY_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user