From 0449b73e960c62be134265329af160b291273d92 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Mon, 19 Jun 2023 09:51:58 +0100 Subject: [PATCH] Bug 798960 - Transaction completion horizontal scrolling When a description popup has long text a horizontal scroll bar will be used. If a subsequent popup has short text which does not need a scroll bar, the previous one is still visible so queue a tree view column resize to reevaluate the need for a scroll bar. --- gnucash/register/register-gnome/completioncell-gnome.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnucash/register/register-gnome/completioncell-gnome.c b/gnucash/register/register-gnome/completioncell-gnome.c index 75ed61d2e2..14eb81af50 100644 --- a/gnucash/register/register-gnome/completioncell-gnome.c +++ b/gnucash/register/register-gnome/completioncell-gnome.c @@ -565,6 +565,10 @@ select_first_entry_in_list (PopBox* box) if (!gtk_tree_model_iter_next (model, &iter)) return; + // reset horizontal scrolling + gtk_tree_view_column_queue_resize (gtk_tree_view_get_column ( + box->item_list->tree_view, TEXT_COL)); + gtk_tree_model_get (model, &iter, TEXT_COL, &string, -1); gnc_item_list_select (box->item_list, string);