浏览代码

Removed TabRowView.PositionCursor as we no longer show cursor

tznind 2 年之前
父节点
当前提交
d2bcc10193
共有 1 个文件被更改,包括 0 次插入27 次删除
  1. 0 27
      Terminal.Gui/Views/TabView.cs

+ 0 - 27
Terminal.Gui/Views/TabView.cs

@@ -466,33 +466,6 @@ namespace Terminal.Gui {
 				Width = Dim.Fill ();
 				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)
 			public override bool OnEnter (View view)
 			{
 			{
 				Driver.SetCursorVisibility (CursorVisibility.Invisible);
 				Driver.SetCursorVisibility (CursorVisibility.Invisible);