From c70e5c678de999a5e25b21aafed99d6cbef95999 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 30 May 2014 15:13:45 -0300 Subject: [PATCH] Fix regression introduced by b9d6b628a98fc17f5e92a344450b6336f1a2b2ce When calculated the palette height based in the size of children, forgoten add the border size. That moved the palette in the device icons 4 pixels to the bottom, then the gap was miscalcuated and the border button border was not draw. Signed-off-by: Gonzalo Odiard --- src/sugar3/graphics/palettewindow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sugar3/graphics/palettewindow.py b/src/sugar3/graphics/palettewindow.py index 1b66a397..4761be7e 100644 --- a/src/sugar3/graphics/palettewindow.py +++ b/src/sugar3/graphics/palettewindow.py @@ -626,6 +626,10 @@ class PaletteWindow(GObject.GObject): for child in self._widget.get_children(): child_req = child.size_request() total_height += child_req.height + + # need add the border line width as defined in sugar-artwork + line_width = 2 + total_height += line_width * 2 req.height = total_height position = invoker.get_position_for_alignment(self._alignment, req)