(w, h int)
| 255 | } |
| 256 | |
| 257 | func (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 | |
| 271 | func (m keysTabModel) View() string { |
| 272 | if !m.ready { |
nothing calls this directly
no test coverage detected