(w, h int)
| 216 | } |
| 217 | |
| 218 | func (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 | |
| 231 | func (m *configTabModel) ensureCursorVisible() { |
| 232 | // Each field takes ~1 line, header takes ~4 lines |
nothing calls this directly
no test coverage detected