Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2012-05-23 18:18:44 (GMT)
committer Manuel Kaufmann <humitos@gmail.com>2012-05-23 18:23:06 (GMT)
commit19b74949965df4738ccfde2981097c10607ea8cc (patch)
treef97c0caecd5506da0ff679bbd39d3709125c5f92
parent81d6d3929a238fe1d9d788cccda50118de21c10c (diff)
Fixed screen height SL #3632
Use the correct way to calculate the height of the screen to avoid overlap: gtk.gdk.screen_height() - sugar.graphics.style.GRID_CELL_SIZE Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
-rw-r--r--library.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/library.py b/library.py
index 86bde44..a317f99 100644
--- a/library.py
+++ b/library.py
@@ -119,7 +119,7 @@ class View(gtk.EventBox):
wiki_box.pack_start(wiki)
wiki_box.pack_start(self.progress, False)
wiki_box.set_size_request(gtk.gdk.screen_width()/4*3,
- gtk.gdk.screen_height()/2)
+ gtk.gdk.screen_height()/2 - style.GRID_CELL_SIZE / 2)
custom_widget = Reading_View()
custom = gtk.Notebook()
@@ -127,8 +127,10 @@ class View(gtk.EventBox):
custom.props.show_tabs = False
custom.append_page(custom_stub)
custom.append_page(custom_widget)
+ # custom.set_size_request(gtk.gdk.screen_width()/4*3,
+ # gtk.gdk.screen_height()/2 - 55)
custom.set_size_request(gtk.gdk.screen_width()/4*3,
- gtk.gdk.screen_height()/2)
+ gtk.gdk.screen_height()/2 - style.GRID_CELL_SIZE / 2)
# workspace