(w, h int)
| 144 | } |
| 145 | |
| 146 | func (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 | |
| 160 | func (m authTabModel) View() string { |
| 161 | if !m.ready { |
nothing calls this directly
no test coverage detected