diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2007-10-16 15:12:46 (GMT) |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2007-10-16 15:12:46 (GMT) |
commit | 977c7d4a9961e8d4d373216d4ae1d4d47ed3a887 (patch) | |
tree | a2c57ad1c06b7771100e96ef6b2b0df4ce7ed9ee /lib/sugar/graphics/palette.py | |
parent | 05236c66702b4d674123a50061c553ae9e11d589 (diff) |
Subtract the palette border from the primary label height.
Diffstat (limited to 'lib/sugar/graphics/palette.py')
-rw-r--r-- | lib/sugar/graphics/palette.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sugar/graphics/palette.py b/lib/sugar/graphics/palette.py index b337133..0acd03b 100644 --- a/lib/sugar/graphics/palette.py +++ b/lib/sugar/graphics/palette.py @@ -110,7 +110,8 @@ class Palette(gtk.Window): vbox = gtk.VBox() self._label = gtk.Label() - self._label.set_size_request(-1, style.zoom(style.GRID_CELL_SIZE)) + self._label.set_size_request(-1, style.zoom(style.GRID_CELL_SIZE) + - 2*self.get_border_width()) self._label.set_alignment(0, 0.5) self._label.set_padding(style.zoom(15), 0) vbox.pack_start(self._label, False) |