Removed TabRowView.PositionCursor as we no longer show cursor

This commit is contained in:
tznind
2022-11-05 09:33:59 +00:00
parent 5594aff326
commit d2bcc10193

View File

@@ -466,33 +466,6 @@ namespace Terminal.Gui {
Width = Dim.Fill ();
}
/// <summary>
/// Positions the cursor at the start of the currently selected tab
/// </summary>
public override void PositionCursor ()
{
base.PositionCursor ();
var selected = host.CalculateViewport (Bounds).FirstOrDefault (t => Equals (host.SelectedTab, t.Tab));
if (selected == null) {
return;
}
int y;
if (host.Style.TabsOnBottom) {
y = 1;
} else {
y = host.Style.ShowTopLine ? 1 : 0;
}
Move (selected.X, y);
}
public override bool OnEnter (View view)
{
Driver.SetCursorVisibility (CursorVisibility.Invisible);