MCPcopy Create free account
hub / github.com/cogentcore/core / ConfigScrolls

Method ConfigScrolls

core/scroll.go:52–58  ·  view source on GitHub ↗

ConfigScrolls configures any scrollbars that have been enabled during the Layout process. This is called during Position, once the sizing and need for scrollbars has been established. The final position of the scrollbars is set during ScenePos in PositionScrolls. Scrolls are kept around in general.

()

Source from the content-addressed store, hash-verified

50// The final position of the scrollbars is set during ScenePos in
51// PositionScrolls. Scrolls are kept around in general.
52func (fr *Frame) ConfigScrolls() {
53 for d := math32.X; d <= math32.Y; d++ {
54 if fr.HasScroll[d] {
55 fr.configScroll(d)
56 }
57 }
58}
59
60// configScroll configures scroll for given dimension
61func (fr *Frame) configScroll(d math32.Dims) {

Callers 4

PositionMethod · 0.95
PositionMethod · 0.80
renderLayoutMethod · 0.80
PositionMethod · 0.80

Calls 1

configScrollMethod · 0.95

Tested by

no test coverage detected