mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-12-11 10:01:58 +00:00
!40302 修复第一次拉起半模态且隐藏拖拽条情况下,拖拽条未占位
Merge pull request !40302 from chenxiaoxue/cherry-pick-1723516689
This commit is contained in:
commit
28e8a0e978
@ -124,7 +124,11 @@ void SheetView::CreateDragBarNode(const RefPtr<FrameNode>& titleBuilder, const R
|
||||
isSingleDetents = sheetStyle.detents[0] == sheetStyle.detents[1] &&
|
||||
sheetStyle.detents[1] == sheetStyle.detents[SHEET_DETENTS_TWO];
|
||||
}
|
||||
if (!isSingleDetents && showDragIndicator) {
|
||||
|
||||
// 1. showDragBar && not single detents
|
||||
// 2. has SystemTitleBar
|
||||
// need set drag bar invisible to occupy place
|
||||
if ((!isSingleDetents && showDragIndicator) || sheetStyle.isTitleBuilder.has_value()) {
|
||||
dragBarLayoutProperty->UpdateVisibility(VisibleType::INVISIBLE);
|
||||
} else {
|
||||
dragBarLayoutProperty->UpdateVisibility(VisibleType::GONE);
|
||||
|
Loading…
Reference in New Issue
Block a user