mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 01:07:58 +01:00
Removed TabRowView.PositionCursor as we no longer show cursor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user