Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-11-09 16:39:29 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-11-09 16:39:29 (GMT)
commitd6bac927e173a3f2e95ba7c197dde07278f18e4a (patch)
tree88142a14b6ffd04a6fc06a15d6ab0fd880e1333c /shell
parentd577566151c7dd7287d5609730861b006158b1e4 (diff)
Short the mesh view to fit into screen
Diffstat (limited to 'shell')
-rw-r--r--shell/view/home/spreadlayout.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/view/home/spreadlayout.py b/shell/view/home/spreadlayout.py
index 91ebfef..3edd717 100644
--- a/shell/view/home/spreadlayout.py
+++ b/shell/view/home/spreadlayout.py
@@ -22,6 +22,8 @@ import hippo
import gobject
import gtk
+from sugar.graphics import style
+
_PLACE_TRIALS = 20
_MAX_WEIGHT = 255
_CELL_SIZE = 4
@@ -208,7 +210,7 @@ class SpreadLayout(gobject.GObject, hippo.CanvasLayout):
self._box = box
def do_get_height_request(self, for_width):
- return 0, gtk.gdk.screen_height()
+ return 0, gtk.gdk.screen_height() - style.GRID_CELL_SIZE
def do_get_width_request(self):
return 0, gtk.gdk.screen_width()