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

Method SetSize

internal/tui/logs_tab.go:171–182  ·  view source on GitHub ↗
(w, h int)

Source from the content-addressed store, hash-verified

169}
170
171func (m *logsTabModel) SetSize(w, h int) {
172 m.width = w
173 m.height = h
174 if !m.ready {
175 m.viewport = viewport.New(w, h)
176 m.viewport.SetContent(m.renderLogs())
177 m.ready = true
178 } else {
179 m.viewport.Width = w
180 m.viewport.Height = h
181 }
182}
183
184func (m logsTabModel) View() string {
185 if !m.ready {

Callers 1

UpdateMethod · 0.45

Calls 1

renderLogsMethod · 0.95

Tested by

no test coverage detected