From fdd5c6b2a22f87d0ffd15f7bec10853fbf2480a3 Mon Sep 17 00:00:00 2001 From: Tigger Kindel Date: Sat, 25 Feb 2023 17:32:38 -0700 Subject: [PATCH] Fixed Border Comparsion Pos.Center bugs --- UICatalog/Scenarios/BordersComparisons.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UICatalog/Scenarios/BordersComparisons.cs b/UICatalog/Scenarios/BordersComparisons.cs index 46c363c12..dd17e2261 100644 --- a/UICatalog/Scenarios/BordersComparisons.cs +++ b/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.Center () - 3, + Y = Pos.Top (button) - 1 }; 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.Center () - 3, + Y = Pos.Top (button2) - 1 }; 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.Center () - 3, + Y = Pos.Top (button3) - 1 }; var tv3 = new TextView () { Y = Pos.AnchorEnd (2),