diff options
author | Simon Schampijer <simon@schampijer.de> | 2011-12-11 15:24:39 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2011-12-11 15:24:39 (GMT) |
commit | 5fa6e41253b0bbf7dfde3498e476186ea8ba51d6 (patch) | |
tree | ca0187785a0124ee0cb202f1aa4e588e5d164705 | |
parent | 7803e5cbcedf60b1171eede91aff5f48e0969ac3 (diff) |
Setting the correct height for palettes
This fixes the height for the 'tooltip' like
palettes (e.g. the palette for the activity stop
button). This is the same that we did in the old
toolkit.
-rw-r--r-- | src/sugar3/graphics/palette.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sugar3/graphics/palette.py b/src/sugar3/graphics/palette.py index b2e7ff1..f5aa154 100644 --- a/src/sugar3/graphics/palette.py +++ b/src/sugar3/graphics/palette.py @@ -290,6 +290,8 @@ class Palette(PaletteWindow): self._palette_box.show() self._widget.add(self._palette_box) + height = style.GRID_CELL_SIZE - 2 * self._widget.get_border_width() + self._primary_box.set_size_request(-1, height) if self._content.get_children(): self._content.remove(self._content.get_children()[0]) |