浏览代码

Fix tab order to tile1, splitter1, tile2

tznind 2 年之前
父节点
当前提交
15469617e1
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      Terminal.Gui/Views/SplitView.cs

+ 6 - 4
Terminal.Gui/Views/SplitView.cs

@@ -100,17 +100,19 @@ namespace Terminal.Gui {
 			}
 
 			for (int i = 0; i < count; i++) {
-				var tile = new Tile ();
-				tiles.Add (tile);
-				Add (tile.View);
+
 
 				if (i > 0) {
 					var currentPos = Pos.Percent ((100 / count) * i);
 					splitterDistances.Add (currentPos);
-					var line = new SplitContainerLineView (this, i-1);
+					var line = new SplitContainerLineView (this, i - 1);
 					Add (line);
 					splitterLines.Add (line);
 				}
+
+				var tile = new Tile ();
+				tiles.Add (tile);
+				Add (tile.View);
 			}
 
 			LayoutSubviews ();