[longomatch] Align central box in the New Projects panel



commit d4487d3fbd3c59e47f69e16acf36bbc40afb2017
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Aug 21 20:10:55 2014 +0200

    Align central box in the New Projects panel

 LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index 00c9dc5..6d0091c 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -102,6 +102,11 @@ namespace LongoMatch.Gui.Panel
                }
                
                void ApplyStyle () {
+                       /* Keep the central box aligned in the center of the widget */
+                       SizeGroup grp = new  SizeGroup (SizeGroupMode.Horizontal);
+                       grp.AddWidget (lefttable);
+                       grp.AddWidget (righttable);
+                       
                        centerbox.WidthRequest = StyleConf.NewTeamsComboWidth * 2 + StyleConf.NewTeamsSpacing;
                        headerhbox.HeightRequest = StyleConf.NewHeaderHeight;
                        notebook1.BorderWidth = StyleConf.NewHeaderSpacing;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]