Skip to content

Commit

Permalink
About me - fix age picker spacing
Browse files Browse the repository at this point in the history
When language is set to Spanish, the icons do not appear evenly spaced.

Each age is a Gtk.Grid containing an EventIcon and a Gtk.Label, but the
array of grids is held in a Gtk.Fixed with spacing set by _configure
method.  The design depends on the label fitting within the large icon
size of the style.

Wrap and centre the label.  This increases the chance that it will fit
within the large icon size.

Reported in https://bugs.sugarlabs.org/ticket/4967
  • Loading branch information
quozl committed Aug 19, 2016
1 parent 7f76255 commit 37fb479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jarabe/intro/agepicker.py
Expand Up @@ -158,7 +158,8 @@ def __init__(self, icon, label):
self.attach(self._button, 0, 0, 1, 1)
self._button.hide()

self._label = Gtk.Label(label)
self._label = Gtk.Label(label.replace(' ', '\n'))
self._label.props.justify = Gtk.Justification.CENTER
self.attach(self._label, 0, 1, 1, 1)
self._label.hide()

Expand Down

0 comments on commit 37fb479

Please sign in to comment.