mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Only sets the top if the sum (top + selected) is bigger than the frame height.
This commit is contained in:
@@ -559,7 +559,9 @@ namespace Terminal.Gui {
|
||||
{
|
||||
if (source.Count > 0 && selected != source.Count - 1) {
|
||||
selected = source.Count - 1;
|
||||
top = selected;
|
||||
if (top + selected > Frame.Height - 1) {
|
||||
top = selected;
|
||||
}
|
||||
OnSelectedChanged ();
|
||||
SetNeedsDisplay ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user