MCPcopy
hub / github.com/g3n/engine / Update

Method Update

gui/scroller.go:552–556  ·  view source on GitHub ↗

Update updates the visibility of the scrollbars, corner panel, and then recalculates

()

Source from the content-addressed store, hash-verified

550
551// Update updates the visibility of the scrollbars, corner panel, and then recalculates
552func (s *Scroller) Update() {
553
554 s.updateScrollbarsVisibility()
555 s.recalc()
556}
557
558// TODO - if the style is changed this needs to be called to update the scrollbars and corner panel
559func (s *Scroller) applyStyle(ss *ScrollerStyle) {

Callers 10

initializeMethod · 0.95
SetScrollModeMethod · 0.95
SetCornerCoveredMethod · 0.95
onResizeMethod · 0.95
applyStyleMethod · 0.95

Calls 2

recalcMethod · 0.95

Tested by

no test coverage detected