소스 검색

Fixed Borders on XXX Pos.Center bugs

Tigger Kindel 2 년 전
부모
커밋
c9cbacb0d8
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      UICatalog/Scenarios/BordersOnFrameView.cs
  2. 1 1
      UICatalog/Scenarios/BordersOnToplevel.cs
  3. 1 1
      UICatalog/Scenarios/BordersOnWindow.cs

+ 1 - 1
UICatalog/Scenarios/BordersOnFrameView.cs

@@ -45,7 +45,7 @@ namespace UICatalog.Scenarios {
 			button.Clicked += () => MessageBox.Query (20, 7, "Hi", "I'm a FrameView?", "Yes", "No");
 			var label = new Label ("I'm a FrameView") {
 				X = Pos.Center (),
-				Y = Pos.Center () - 3,
+				Y = Pos.Top (button) - 1,
 			};
 			var tf2 = new TextField ("1234567890") {
 				X = Pos.AnchorEnd (10),

+ 1 - 1
UICatalog/Scenarios/BordersOnToplevel.cs

@@ -45,7 +45,7 @@ namespace UICatalog.Scenarios {
 			button.Clicked += () => MessageBox.Query (20, 7, "Hi", "I'm a Toplevel?", "Yes", "No");
 			var label = new Label ("I'm a Toplevel") {
 				X = Pos.Center (),
-				Y = Pos.Center () - 3,
+				Y = Pos.Top (button) - 1,
 			};
 			var tf2 = new TextField ("1234567890") {
 				X = Pos.AnchorEnd (10),

+ 1 - 1
UICatalog/Scenarios/BordersOnWindow.cs

@@ -44,7 +44,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.Center () - 3,
+				Y = Pos.Top (button) - 1,
 			};
 			var tf2 = new TextField ("1234567890") {
 				X = Pos.AnchorEnd (10),