Home
last modified time | relevance | path

Searched refs:scaledBubbleSpacing (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/bubble/
H A Drender_bubble.cpp366 double scaledBubbleSpacing = NormalizeToPx(BUBBLE_SPACING); in InitArrowTopAndBottomPosition() local
380 targetOffset_.GetY() - scaledBubbleSpacing - NormalizePercentToPx(margin_.Bottom(), true)); in InitArrowTopAndBottomPosition()
382 …targetOffset_.GetY() + targetSize_.Height() + scaledBubbleSpacing + NormalizePercentToPx(margin_.T… in InitArrowTopAndBottomPosition()
388 double scaledBubbleSpacing = NormalizeToPx(BUBBLE_SPACING); in GetChildPosition() local
390 …targetOffset_.GetY() + targetSize_.Height() + scaledBubbleSpacing + NormalizePercentToPx(margin_.T… in GetChildPosition()
392 bottomPosition += Offset(0.0, scaledBubbleSpacing); in GetChildPosition()
395 …targetOffset_.GetY() - childSize.Height() - scaledBubbleSpacing - NormalizePercentToPx(margin_.Bot… in GetChildPosition()
397 topPosition += Offset(0.0, -scaledBubbleSpacing); in GetChildPosition()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_layout_algorithm.cpp299 auto scaledBubbleSpacing = scaledBubbleSpacing_ * 2; in Measure() local
315 … if (childWidth + targetOffset.GetX() + targetSize.Width() + scaledBubbleSpacing <= rootW && in Measure()
316 targetOffset.GetX() - childWidth - scaledBubbleSpacing >= 0) { in Measure()
319 constrainWidth = rootW - scaledBubbleSpacing; in Measure()
323 … if (childHeight + targetOffset.GetY() + targetSize.Height() + scaledBubbleSpacing <= rootH && in Measure()
324 targetOffset.GetY() - childHeight - scaledBubbleSpacing >= 0) { in Measure()
327 …constrainHeight = std::max(rootH - targetOffset.GetY() - targetSize.Height() - scaledBubbleSpacing, in Measure()
328 targetOffset.GetY() - scaledBubbleSpacing); in Measure()