syncDetailsBar mirrors the viewport's scroll state into the scrollbar.
()
| 422 | |
| 423 | // syncDetailsBar mirrors the viewport's scroll state into the scrollbar. |
| 424 | func (m *agentPickerModel) syncDetailsBar() { |
| 425 | m.detailsBar.SetDimensions(m.details.Height(), m.details.TotalLineCount()) |
| 426 | m.detailsBar.SetScrollOffset(m.details.YOffset()) |
| 427 | } |
| 428 | |
| 429 | // openDetails loads the selected agent's YAML into the viewport and shows the |
| 430 | // dialog. |