changeset 238:dec76d4536ad

browser_side: set CSS margin: auto for all button panels
author souliane <souliane@mailoo.org>
date Fri, 11 Oct 2013 15:40:29 +0200
parents 531b8809d1ab
children b911f2b43fd4
files browser_side/card_game.py browser_side/dialog.py browser_side/menu.py
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/card_game.py	Thu Oct 10 18:29:07 2013 +0200
+++ b/browser_side/card_game.py	Fri Oct 11 15:40:29 2013 +0200
@@ -73,12 +73,13 @@
         self.contrats_list.setSelectedIndex(0)
         content.add(self.contrats_list)
         button_panel = HorizontalPanel()
+        button_panel.addStyleName("marginAuto")
         self.choose_button = Button("Choose", self.onChoose)
         button_panel.add(self.choose_button)
         content.add(button_panel)
         self.setHTML("Please select your contrat")
         self.setWidget(content)	
-    
+
     def onChoose(self, button):
         self.hide()
         self._parent.contratSelected(self.contrats_list.getSelectedItemText()[0])
--- a/browser_side/dialog.py	Thu Oct 10 18:29:07 2013 +0200
+++ b/browser_side/dialog.py	Fri Oct 11 15:40:29 2013 +0200
@@ -62,6 +62,7 @@
         self.contacts_list.addChangeListener(self.onChange)
         content.add(self.contacts_list)
         button_panel = HorizontalPanel()
+        button_panel.addStyleName("marginAuto")
         self.choose_button = Button("Choose", self.onChoose)
         if (nb_contact):
             self.choose_button.setEnabled(False)
@@ -238,6 +239,7 @@
         main_panel.add(add_group_panel)
 
         button_panel = HorizontalPanel()
+        button_panel.addStyleName("marginAuto")
         button_panel.add(Button(ok_title, self.onOK))
         button_panel.add(Button("Cancel", self.onCancel))
         main_panel.add(button_panel)
--- a/browser_side/menu.py	Thu Oct 10 18:29:07 2013 +0200
+++ b/browser_side/menu.py	Fri Oct 11 15:40:29 2013 +0200
@@ -303,6 +303,7 @@
         hpanel.add(_edit)
         _main_panel.add(hpanel)
         button_panel = HorizontalPanel()
+        button_panel.addStyleName("marginAuto")
         button_panel.add(Button("Join", onOK))
         button_panel.add(Button("Cancel", onCancel))
         _main_panel.add(button_panel)