diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-05-13 16:57:07 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-05-13 16:57:07 (GMT) |
commit | 02eb05235ca0edbb6e5b041719d742ac822b2889 (patch) | |
tree | 50f7c2e603420b47e6df4f93d7c227b17b989bf1 | |
parent | a6a93f088e5de904d41211ff94d277d867ceab36 (diff) |
Fix help button scrollbar bug
Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
-rw-r--r-- | helpbutton.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/helpbutton.py b/helpbutton.py index f27af70..639159d 100644 --- a/helpbutton.py +++ b/helpbutton.py @@ -39,14 +39,18 @@ class HelpButton(gtk.ToolItem): self._palette = help_button.get_palette() sw = gtk.ScrolledWindow() - sw.set_size_request(int(gtk.gdk.screen_width() / 3), + sw.set_size_request(int(gtk.gdk.screen_width() / 2.8), gtk.gdk.screen_height() - style.GRID_CELL_SIZE * 3) sw.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC) self._max_text_width = int(gtk.gdk.screen_width() / 3) - 20 self._vbox = gtk.VBox() self._vbox.set_homogeneous(False) - sw.add_with_viewport(self._vbox) + + hbox = gtk.HBox() + hbox.pack_start(self._vbox, False, True, 0) + + sw.add_with_viewport(hbox) self._palette.set_content(sw) sw.show_all() |