forked from AuroraMiddleware/gtk
Fix entry completion window sizing
I don't think we are at the end of scrolledwindow tweaks yet, but this will make things work for now, as they used to. https://bugzilla.gnome.org/show_bug.cgi?id=633670
This commit is contained in:
parent
3f2281f8c6
commit
f991f88d3f
@ -1449,7 +1449,9 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion)
|
||||
width = -1;
|
||||
|
||||
gtk_tree_view_columns_autosize (GTK_TREE_VIEW (completion->priv->tree_view));
|
||||
gtk_widget_set_size_request (completion->priv->tree_view, width, items * height);
|
||||
gtk_scrolled_window_set_min_content_width (GTK_SCROLLED_WINDOW (completion->priv->scrolled_window), width);
|
||||
gtk_widget_set_size_request (completion->priv->scrolled_window, width, -1);
|
||||
gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (completion->priv->scrolled_window), items * height);
|
||||
|
||||
if (actions)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user