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

Method detailsDialogSize

cmd/root/agent_picker.go:402–406  ·  view source on GitHub ↗

detailsDialogSize returns the outer width and height of the YAML dialog, clamped so it always fits on screen with a small margin.

()

Source from the content-addressed store, hash-verified

400// detailsDialogSize returns the outer width and height of the YAML dialog,
401// clamped so it always fits on screen with a small margin.
402func (m *agentPickerModel) detailsDialogSize() (w, h int) {
403 w = min(detailsDialogWidth, max(m.width-4, 20))
404 h = min(detailsDialogHeight, max(m.height-2, detailsChromeRows+1))
405 return w, h
406}
407
408// viewportSize returns the inner content dimensions of the YAML viewport.
409func (m *agentPickerModel) viewportSize() (w, h int) {

Callers 2

viewportSizeMethod · 0.95
renderDetailsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected