resizeDetails keeps the viewport and its scrollbar sized to the current dialog dimensions.
()
| 414 | // resizeDetails keeps the viewport and its scrollbar sized to the current |
| 415 | // dialog dimensions. |
| 416 | func (m *agentPickerModel) resizeDetails() { |
| 417 | w, h := m.viewportSize() |
| 418 | m.details.SetWidth(w) |
| 419 | m.details.SetHeight(h) |
| 420 | m.syncDetailsBar() |
| 421 | } |
| 422 | |
| 423 | // syncDetailsBar mirrors the viewport's scroll state into the scrollbar. |
| 424 | func (m *agentPickerModel) syncDetailsBar() { |
no test coverage detected