Fix regression introduced by b9d6b628a9
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 <godiard@sugarlabs.org>
This commit is contained in:
parent
dfeba6184e
commit
c70e5c678d
@ -626,6 +626,10 @@ class PaletteWindow(GObject.GObject):
|
|||||||
for child in self._widget.get_children():
|
for child in self._widget.get_children():
|
||||||
child_req = child.size_request()
|
child_req = child.size_request()
|
||||||
total_height += child_req.height
|
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
|
req.height = total_height
|
||||||
|
|
||||||
position = invoker.get_position_for_alignment(self._alignment, req)
|
position = invoker.get_position_for_alignment(self._alignment, req)
|
||||||
|
Loading…
Reference in New Issue
Block a user