From bea9dcf286b33b7c6b690aafff8d345f35d0915c Mon Sep 17 00:00:00 2001 From: BDisp Date: Mon, 27 Feb 2023 19:23:25 +0000 Subject: [PATCH] Fixes Borders scenario. --- UICatalog/Scenarios/Borders.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/UICatalog/Scenarios/Borders.cs b/UICatalog/Scenarios/Borders.cs index 316233979..58e2e2f5c 100644 --- a/UICatalog/Scenarios/Borders.cs +++ b/UICatalog/Scenarios/Borders.cs @@ -19,6 +19,8 @@ namespace UICatalog.Scenarios { var effect3D = true; var smartPanel = new PanelView () { + X = Pos.Center () - 20, + Y = Pos.Center () + 2, Width = 24, Height = 13, Border = new Border () { @@ -70,6 +72,8 @@ namespace UICatalog.Scenarios { //}; var smartLabel = new Label () { + X = Pos.Center () + 16, + Y = Pos.Center () + 2, Border = new Border () { BorderStyle = borderStyle, DrawMarginFrame = drawMarginFrame, @@ -184,7 +188,7 @@ namespace UICatalog.Scenarios { Win.Add (paddingBottomEdit); var replacePadding = new Button ("Replace all based on top") { - X = Pos.Left(paddingLeftEdit), + X = Pos.Left (paddingLeftEdit), Y = 5 }; replacePadding.Clicked += () => { @@ -303,7 +307,7 @@ namespace UICatalog.Scenarios { Win.Add (borderBottomEdit); var replaceBorder = new Button ("Replace all based on top") { - X = Pos.Left(borderLeftEdit), + X = Pos.Left (borderLeftEdit), Y = 5 }; replaceBorder.Clicked += () => { @@ -457,14 +461,9 @@ namespace UICatalog.Scenarios { }; Win.Add (rbBorderBrush); - smartPanel.X = Pos.Left (paddingLeftEdit); - smartPanel.Y = Pos.Top (smartLabel); Win.Add (smartPanel); - smartLabel.X = Pos.Left (borderLeftEdit); - smartLabel.Y = Pos.Bottom (cbUseUsePanelFrame) + 5; Win.Add (smartLabel); Win.BringSubviewToFront (smartPanel); - } } } \ No newline at end of file