瀏覽代碼

Sets the Pos.Y later.

BDisp 2 年之前
父節點
當前提交
f294adf4cc
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      UICatalog/Scenarios/BordersOnContainers.cs

+ 3 - 1
UICatalog/Scenarios/BordersOnContainers.cs

@@ -16,7 +16,7 @@ namespace UICatalog.Scenarios {
 			var effect3D = true;
 
 			smartView.X = Pos.Center ();
-			smartView.Y = Pos.Center () + 4;
+			smartView.Y = 0;
 			smartView.Width = 40;
 			smartView.Height = 20;
 			smartView.Border = new Border () {
@@ -243,6 +243,8 @@ namespace UICatalog.Scenarios {
 			};
 			Add (replaceBorder);
 
+			smartView.Y = Pos.Center () + 4;
+
 			Add (new Label ("BorderStyle:"));
 
 			var borderStyleEnum = Enum.GetValues (typeof (BorderStyle)).Cast<BorderStyle> ().ToList ();