# HG changeset patch # User souliane # Date 1381498829 -7200 # Node ID dec76d4536ad14da8239b1b37805e0448ab47d0c # Parent 531b8809d1ab1002e72e82047654fc5a3a8bc626 browser_side: set CSS margin: auto for all button panels diff -r 531b8809d1ab -r dec76d4536ad browser_side/card_game.py --- 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]) diff -r 531b8809d1ab -r dec76d4536ad browser_side/dialog.py --- 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) diff -r 531b8809d1ab -r dec76d4536ad browser_side/menu.py --- 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)