You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using SelectionPrompt with an odd page size, if you move the selection towards the end of the list, the number of choices shown in the page is reduced by one.
To Reproduce
using Spectre.Console;namespace Playground;classProgram{staticvoidMain(){varprompt=newSelectionPrompt<string>().Title("Select one").AddChoices("One","Two","Three","Four","Five","Six","Seven","Eight").PageSize(5);
AnsiConsole.Prompt(prompt);}}
Expected behavior
The list always shows the number of choices specified in the page size, regardless of which choice is selected.
Screenshots
Additional context
An even page size always shows the correct number of choices.
The text was updated successfully, but these errors were encountered:
Information
Describe the bug
When using
SelectionPrompt
with an odd page size, if you move the selection towards the end of the list, the number of choices shown in the page is reduced by one.To Reproduce
Expected behavior
The list always shows the number of choices specified in the page size, regardless of which choice is selected.
Screenshots
Additional context
An even page size always shows the correct number of choices.
The text was updated successfully, but these errors were encountered: