MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / SetSize

Method SetSize

internal/tui/config_tab.go:218–229  ·  view source on GitHub ↗
(w, h int)

Source from the content-addressed store, hash-verified

216}
217
218func (m *configTabModel) SetSize(w, h int) {
219 m.width = w
220 m.height = h
221 if !m.ready {
222 m.viewport = viewport.New(w, h)
223 m.viewport.SetContent(m.renderContent())
224 m.ready = true
225 } else {
226 m.viewport.Width = w
227 m.viewport.Height = h
228 }
229}
230
231func (m *configTabModel) ensureCursorVisible() {
232 // Each field takes ~1 line, header takes ~4 lines

Callers

nothing calls this directly

Calls 1

renderContentMethod · 0.95

Tested by

no test coverage detected