Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/sugarbin.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jarabe/journal/sugarbin.py')
-rw-r--r--src/jarabe/journal/sugarbin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jarabe/journal/sugarbin.py b/src/jarabe/journal/sugarbin.py
index 5596c67..be64655 100644
--- a/src/jarabe/journal/sugarbin.py
+++ b/src/jarabe/journal/sugarbin.py
@@ -123,7 +123,8 @@ class SugarBin(gtk.EventBox):
x=self._padding_left, y=self._padding_top,
width=width - self._padding_left - self._padding_right,
height=height - self._padding_top - self._padding_bottom)
+ child_allocation.width = max(0, child_allocation.width)
+ child_allocation.height = max(0, child_allocation.height)
self.child.size_allocate(child_allocation)
-
gobject.type_register(SugarBin)