mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
dropdown: Fix popup sizing
Setting a width request is not quite enough, since gtk_widget_set_size_request() only queues a resize when the widget is visible. Explicitly force one here. Without this, the popup sometimes shows up too small.
This commit is contained in:
parent
3176d69009
commit
c85e424279
@ -379,6 +379,7 @@ gtk_drop_down_size_allocate (GtkWidget *widget,
|
||||
gtk_widget_size_allocate (self->button, &(GtkAllocation) { 0, 0, width, height }, baseline);
|
||||
|
||||
gtk_widget_set_size_request (self->popup, width, -1);
|
||||
gtk_widget_queue_resize (self->popup);
|
||||
|
||||
gtk_native_check_resize (GTK_NATIVE (self->popup));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user