psppire-output-view: Add a little extra space to GtkLayout.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 1 Jan 2019 19:12:36 +0000 (11:12 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 2 Jan 2019 06:07:55 +0000 (22:07 -0800)
It can be difficult to see the bottom and right sides of the GtkLayout
because of the scroll bars that, on newer versions of GTK+ 3, seem to
actually overlap part of the content.  Add a little extra space around
the output items to make it clearer.

src/ui/gui/psppire-output-view.c

index fc660896d155a98437143ca5d74f961e6097fac7..4205befaeb12c30c2e1016e36cf0fd77c3ed7235 100644 (file)
@@ -298,7 +298,9 @@ rerender (struct psppire_output_view *view)
       view->y += th;
     }
 
-  gtk_layout_set_size (view->output, view->max_width, view->y);
+  gtk_layout_set_size (view->output,
+                       view->max_width + view->font_height,
+                       view->y + view->font_height);
   cairo_destroy (cr);
 }