| 787 | m_host.FocusCtrl(SlotIdcHover(slot)); |
| 788 | } |
| 789 | |
| 790 | void OptionsScrollList::EnsureFocusVisible() |
| 791 | { |
| 792 | // Pinned rows are always visible; only content rows need scroll |
| 793 | // adjustment. |
| 794 | int pinned = m_provider.PinnedFooterRow(); |
| 795 | if (pinned >= 0 && m_rowFocus == pinned) |
| 796 | return; |
| 797 | int adjusted = (pinned >= 0 && m_rowFocus > pinned) ? (m_rowFocus - 1) : m_rowFocus; |
| 798 | int contentSlots = ContentSlots(); |
| 799 | if (adjusted < m_scrollOffset) |
| 800 | m_scrollOffset = adjusted; |
| 801 | else if (adjusted >= m_scrollOffset + contentSlots) |
| 802 | m_scrollOffset = adjusted - (contentSlots - 1); |
| 803 | } |
nothing calls this directly
no test coverage detected