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

Method SetSize

internal/tui/keys_tab.go:257–269  ·  view source on GitHub ↗
(w, h int)

Source from the content-addressed store, hash-verified

255}
256
257func (m *keysTabModel) SetSize(w, h int) {
258 m.width = w
259 m.height = h
260 m.editInput.Width = w - 16
261 if !m.ready {
262 m.viewport = viewport.New(w, h)
263 m.viewport.SetContent(m.renderContent())
264 m.ready = true
265 } else {
266 m.viewport.Width = w
267 m.viewport.Height = h
268 }
269}
270
271func (m keysTabModel) View() string {
272 if !m.ready {

Callers

nothing calls this directly

Calls 1

renderContentMethod · 0.95

Tested by

no test coverage detected