MCPcopy Create free account
hub / github.com/codehamr/codehamr / recomputeLayout

Method recomputeLayout

internal/tui/render.go:91–93  ·  view source on GitHub ↗

recomputeLayout caps the textarea height so a long paste can't push the status bar off-screen: leave minViewport rows of breathing room above it. Cheap enough to run on every key press.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

updateMethod · 0.95
handleWindowSizeMethod · 0.95

Calls 3

visualPromptLinesMethod · 0.95
maxTextareaHeightMethod · 0.95
SetHeightMethod · 0.80