Ver código fonte

Sets the Pos.Y later.

BDisp 2 anos atrás
pai
commit
f294adf4cc
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      UICatalog/Scenarios/BordersOnContainers.cs

+ 3 - 1
UICatalog/Scenarios/BordersOnContainers.cs

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