浏览代码

Fixes BordersComparisons scenario.

BDisp 2 年之前
父节点
当前提交
0892fed669
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      UICatalog/Scenarios/BordersComparisons.cs

+ 3 - 3
UICatalog/Scenarios/BordersComparisons.cs

@@ -38,7 +38,7 @@ namespace UICatalog.Scenarios {
 			button.Clicked += () => MessageBox.Query (20, 7, "Hi", "I'm a Window?", "Yes", "No");
 			var label = new Label ("I'm a Window") {
 				X = Pos.Center (),
-				Y = Pos.Top (button) - 1
+				Y = Pos.Center () - 2,
 			};
 			var tv = new TextView () {
 				Y = Pos.AnchorEnd (2),
@@ -77,7 +77,7 @@ namespace UICatalog.Scenarios {
 			button2.Clicked += () => MessageBox.Query (20, 7, "Hi", "I'm a Toplevel?", "Yes", "No");
 			var label2 = new Label ("I'm a Toplevel") {
 				X = Pos.Center (),
-				Y = Pos.Top (button2) - 1
+				Y = Pos.Center () - 2,
 			};
 			var tv2 = new TextView () {
 				Y = Pos.AnchorEnd (2),
@@ -113,7 +113,7 @@ namespace UICatalog.Scenarios {
 			button3.Clicked += () => MessageBox.Query (20, 7, "Hi", "I'm a FrameView?", "Yes", "No");
 			var label3 = new Label ("I'm a FrameView") {
 				X = Pos.Center (),
-				Y = Pos.Top (button3) - 1
+				Y = Pos.Center () - 2,
 			};
 			var tv3 = new TextView () {
 				Y = Pos.AnchorEnd (2),