From 32ff31feadaed6ec5a6902a690bf62651eed9fc2 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Fri, 8 Nov 2019 14:51:30 +0000 Subject: [PATCH] Bug 796945 - Search dialog update - follow up For some reason on Ubuntu 18.04 that uses Gtk3.22.30 and maybe others we have to set the scroll window content min height after the dialog has been shown to get the correct scroll window height --- gnucash/gnome-search/dialog-search.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnucash/gnome-search/dialog-search.c b/gnucash/gnome-search/dialog-search.c index 39efe30d13..5d6400a180 100644 --- a/gnucash/gnome-search/dialog-search.c +++ b/gnucash/gnome-search/dialog-search.c @@ -1320,6 +1320,14 @@ gnc_search_dialog_create (GtkWindow *parent, gtk_window_set_transient_for(GTK_WINDOW(sw->dialog), parent); gtk_widget_show(sw->dialog); + /* For some reason on Ubuntu 18.04 that uses Gtk3.22.30 and maybe others we + * have to set the scroll window content min height after the dialog has been + * shown to get the correct scroll window height */ + gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW( + sw->criteria_scroll_window), + gtk_widget_get_allocated_height ( + GTK_WIDGET(sw->grouping_combo)) * 1.5); + // Set the style context for this dialog so it can be easily manipulated with css if (style_class == NULL) gnc_widget_set_style_context (GTK_WIDGET(sw->dialog), "GncSearchDialog");