MCPcopy
hub / github.com/mathaou/termdbms / SetHeight

Method SetHeight

list/list.go:554–556  ·  view source on GitHub ↗

SetHeight sets the height of this component.

(v int)

Source from the content-addressed store, hash-verified

552
553// SetHeight sets the height of this component.
554func (m *Model) SetHeight(v int) {
555 m.setSize(m.width, v)
556}
557
558func (m *Model) setSize(width, height int) {
559 promptWidth := lipgloss.Width(m.Styles.Title.Render(m.FilterInput.Prompt))

Callers 1

HandleWindowSizeEventsFunction · 0.80

Calls 1

setSizeMethod · 0.95

Tested by

no test coverage detected