Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll_bar/
H A Dscroll_bar_proxy.cpp94 Size scrollBarSize = scrollBar->GetLayoutSize(); in NotifyScrollableNode() local
104 auto scrollBarDeltaSize = scrollBarSize - scrollBarChildSize; in NotifyScrollableNode()
149 Size scrollBarSize = scrollBar->GetLayoutSize(); in NotifyScrollBar() local
161 LessOrEqual((scrollBarSize - scrollBarChildSize).Height(), 0.0)) { in NotifyScrollBar()
164 … auto positionY = scrollableChildPosition.GetY() * (scrollBarSize - scrollBarChildSize).Height() / in NotifyScrollBar()
166 positionY = std::clamp(positionY, 0.0, (scrollBarSize - scrollBarChildSize).Height()); in NotifyScrollBar()
170 LessOrEqual((scrollBarSize - scrollBarChildSize).Width(), 0.0)) { in NotifyScrollBar()
173 … auto positionX = scrollableChildPosition.GetX() * (scrollBarSize - scrollBarChildSize).Width() / in NotifyScrollBar()
175 positionX = std::clamp(positionX, 0.0, (scrollBarSize - scrollBarChildSize).Width()); in NotifyScrollBar()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_pattern.cpp372 auto scrollBarSize = scrollBar->GetGeometryNode()->GetFrameSize(); in IsInScrollBar() local
373 …VerticalScrollBar = (locationInfo_.GetX() >= 0 && locationInfo_.GetX() <= scrollBarSize.Width()) && in IsInScrollBar()
374 … (locationInfo_.GetY() >= 0 && locationInfo_.GetY() <= scrollBarSize.Height()); in IsInScrollBar()