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

Method SetSize

internal/tui/auth_tab.go:146–158  ·  view source on GitHub ↗
(w, h int)

Source from the content-addressed store, hash-verified

144}
145
146func (m *authTabModel) SetSize(w, h int) {
147 m.width = w
148 m.height = h
149 m.editInput.Width = w - 20
150 if !m.ready {
151 m.viewport = viewport.New(w, h)
152 m.viewport.SetContent(m.renderContent())
153 m.ready = true
154 } else {
155 m.viewport.Width = w
156 m.viewport.Height = h
157 }
158}
159
160func (m authTabModel) View() string {
161 if !m.ready {

Callers

nothing calls this directly

Calls 1

renderContentMethod · 0.95

Tested by

no test coverage detected