From d18e5ef8b730eda2c87a596cf51159dd5044e541 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 1 Jan 2019 11:12:36 -0800 Subject: [PATCH] psppire-output-view: Add a little extra space to GtkLayout. 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/gui/psppire-output-view.c b/src/ui/gui/psppire-output-view.c index fc660896d1..4205befaeb 100644 --- a/src/ui/gui/psppire-output-view.c +++ b/src/ui/gui/psppire-output-view.c @@ -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); } -- 2.30.2