Home
last modified time | relevance | path

Searched refs:maxH (Results 1 - 3 of 3) sorted by relevance

/foundation/window/window_manager/window_scene/session/host/src/
H A Dmove_drag_controller.cpp739 int32_t maxH = static_cast<int32_t>(limits_.maxHeight_); in CalcFixedAspectRatioTranslateLimits() local
746 if (SessionUtils::ToLayoutWidth(maxW, vpr_) < SessionUtils::ToLayoutHeight(maxH, vpr_) * aspectRatio_) { in CalcFixedAspectRatioTranslateLimits()
747 maxH = SessionUtils::ToWinHeight(SessionUtils::ToLayoutWidth(maxW, vpr_) * aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits()
749 maxW = SessionUtils::ToWinWidth(SessionUtils::ToLayoutHeight(maxH, vpr_) / aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits()
757 if (maxW < maxH * aspectRatio_) { in CalcFixedAspectRatioTranslateLimits()
758 maxH = maxW * aspectRatio_; in CalcFixedAspectRatioTranslateLimits()
760 maxW = maxH / aspectRatio_; in CalcFixedAspectRatioTranslateLimits()
774 minTranY_ = static_cast<int32_t>(moveDragProperty_.originalRect_.height_) - maxH; in CalcFixedAspectRatioTranslateLimits()
778 maxTranY_ = maxH - static_cast<int32_t>(moveDragProperty_.originalRect_.height_); in CalcFixedAspectRatioTranslateLimits()
H A Dscene_session.cpp2229 int32_t maxH; in FixRectByAspectRatio() local
2231 minW, maxW, minH, maxH); in FixRectByAspectRatio()
2235 rect.height_ = std::min(maxH, static_cast<int32_t>(rect.height_)); in FixRectByAspectRatio()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_presentation_pattern.cpp774 // Then adjust the remaining height(heightUp = h - maxH) difference by scrolling in AvoidSafeArea()
810 // maxH : height that the sheet can reach the stage = the LARGE sheet - Current sheet height in GetSheetHeightChange()
811 auto maxH = largeHeight - height_; in GetSheetHeightChange() local
819 if (h <= maxH) { in GetSheetHeightChange()
824 // h > maxH, sheet goes up to the LARGE, then adjust the remaining height(h - maxH) difference by scrolling in GetSheetHeightChange()
830 TAG_LOGD(AceLogTag::ACE_SHEET, "Sheet is LARGE, and there is [%{public}f] height left to be processed.", h - maxH); in GetSheetHeightChange()
832 return h - maxH; in GetSheetHeightChange()

Completed in 17 milliseconds