Home
last modified time | relevance | path

Searched refs:dialogHeight (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/agingadapation/
H A Daging_adapation_dialog_util.cpp43 Dimension dialogHeight; in ShowLongPressDialog() local
48 dialogHeight = Dimension(dialogTheme->GetBigDialogWidth(), DimensionUnit::VP); in ShowLongPressDialog()
50 dialogHeight = Dimension(dialogTheme->GetMaxDialogWidth(), DimensionUnit::VP); in ShowLongPressDialog()
52 auto marginSize = (dialogHeight - dialogTheme->GetIdealSize()).ConvertToPx() / 2; in ShowLongPressDialog()
95 Dimension dialogHeight; in ShowLongPressDialog() local
100 dialogHeight = Dimension(dialogTheme->GetBigDialogWidth(), DimensionUnit::VP); in ShowLongPressDialog()
102 dialogHeight = Dimension(dialogTheme->GetMaxDialogWidth(), DimensionUnit::VP); in ShowLongPressDialog()
104 auto marginSize = (dialogHeight - dialogTheme->GetIdealSize()).ConvertToPx() / 2; in ShowLongPressDialog()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/
H A Drender_dialog_modal.cpp55 double dialogHeight = maxSize.Height() * MAX_HEIGHT_PERCENT + NormalizeToPx(BG_MARGIN) * 2; in PerformLayout() local
56 if (dialogHeight + statusBarPx + navigationBarPx > maxSize.Height()) { in PerformLayout()
59 dialogHeight = maxSize.Height() - navigationBarPx - NormalizeToPx(BG_MARGIN); in PerformLayout()
61 maxSize.SetHeight(dialogHeight); in PerformLayout()
76 dialogHeight - statusBarPx); in PerformLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_layout_algorithm.cpp173 auto dialogHeight = dialogProp->GetHeight().value_or(Dimension(-1, DimensionUnit::VP)); in UpdateChildLayoutConstraint() local
174 if (NonNegative(dialogHeight.Value())) { in UpdateChildLayoutConstraint()
175 … childLayoutProperty->UpdateUserDefinedIdealSize(CalcSize(std::nullopt, CalcLength(dialogHeight))); in UpdateChildLayoutConstraint()
180 childLayoutConstraint.UpdateMaxSizeWithCheck(SizeF(dialogWidth.Value(), dialogHeight.Value())); in UpdateChildLayoutConstraint()
321 auto dialogHeight = dialogProp->GetHeight().value_or(Dimension(-1, DimensionUnit::VP)); in ComputeInnerLayoutSizeParam() local
323 auto realHeight = dialogHeight.Unit() == DimensionUnit::PERCENT ? in ComputeInnerLayoutSizeParam()
324 dialogHeight.ConvertToPxWithSize(defaultMaxHeight) : dialogHeight.ConvertToPx(); in ComputeInnerLayoutSizeParam()
326 auto height = dialogHeight.Unit() == DimensionUnit::PERCENT ? defaultMaxHeight : realHeight; in ComputeInnerLayoutSizeParam()
601 auto dialogHeight = Dimension(dialogChildSize_.Height(), DimensionUnit::PX); in AdjustHeightForKeyboard() local
607 … childLayoutProperty->UpdateUserDefinedIdealSize(CalcSize(std::nullopt, CalcLength(dialogHeight))); in AdjustHeightForKeyboard()
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_dialog.cpp407 uint16_t dialogHeight = height; in MeasureSize() local
408 dialogLayer_->SetHeight(dialogHeight); in MeasureSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_picker_pattern.cpp1067 float dialogHeight = pipelineContext->GetRootHeight(); in CalculateDialogOffset() local
1076 dialogHeight -= titleHeight; in CalculateDialogOffset()
1081 if (hostRect.Bottom() + (DIALOG_HEIGHT).ConvertToPx() > dialogHeight) { in CalculateDialogOffset()