MCPcopy Create free account
hub / github.com/docker/docker-agent / resizeDetails

Method resizeDetails

cmd/root/agent_picker.go:416–421  ·  view source on GitHub ↗

resizeDetails keeps the viewport and its scrollbar sized to the current dialog dimensions.

()

Source from the content-addressed store, hash-verified

414// resizeDetails keeps the viewport and its scrollbar sized to the current
415// dialog dimensions.
416func (m *agentPickerModel) resizeDetails() {
417 w, h := m.viewportSize()
418 m.details.SetWidth(w)
419 m.details.SetHeight(h)
420 m.syncDetailsBar()
421}
422
423// syncDetailsBar mirrors the viewport's scroll state into the scrollbar.
424func (m *agentPickerModel) syncDetailsBar() {

Callers 2

UpdateMethod · 0.95
openDetailsMethod · 0.95

Calls 3

viewportSizeMethod · 0.95
syncDetailsBarMethod · 0.95
SetWidthMethod · 0.45

Tested by

no test coverage detected