diff --git a/gnucash/gnome-utils/dialog-options.cpp b/gnucash/gnome-utils/dialog-options.cpp index 16e51920da2..6a56a3c0c0a 100644 --- a/gnucash/gnome-utils/dialog-options.cpp +++ b/gnucash/gnome-utils/dialog-options.cpp @@ -217,7 +217,8 @@ create_options_box(GtkBox* content_box) gtk_grid_set_column_homogeneous (GTK_GRID(options_box), FALSE); gtk_grid_set_row_spacing (GTK_GRID(options_box), 6); gtk_grid_set_column_spacing (GTK_GRID(options_box), 6); - + git_widget_set_halign (GTK_WIDGET(options_box), GTK_ALIGN_START); + gtk_container_set_border_width(GTK_CONTAINER(options_box), 0); gtk_container_add (GTK_CONTAINER(options_scrolled_win), GTK_WIDGET(options_box)); diff --git a/gnucash/gnome-utils/gnc-option-gtk-ui.cpp b/gnucash/gnome-utils/gnc-option-gtk-ui.cpp index 0ae6c285f19..898dda1f28a 100644 --- a/gnucash/gnome-utils/gnc-option-gtk-ui.cpp +++ b/gnucash/gnome-utils/gnc-option-gtk-ui.cpp @@ -20,6 +20,7 @@ * Boston, MA 02110-1301, USA gnu@gnu.org * \********************************************************************/ +#include <__nullptr> #include #include #include "gnc-option-gtk-ui.hpp" @@ -1104,6 +1105,10 @@ create_option_widget (GncOption& option, g_signal_connect(widget, "account_sel_changed", G_CALLBACK(gnc_option_changed_widget_cb), &option); wrap_widget(option, widget, page_box, row); + // wrap_widget sets the parent so this comes after. + gtk_container_child_set(GTK_CONTAINER(gtk_widget_get_parent(widget)), + widget, "fill", TRUE, "expand", TRUE, + nullptr); } static void