collect/folder view: size of box does not change when expanding folders
The box containing the folders has 3 rows initially, which is equal to the number of top level folders. It used to be bigger (with empty rows). That's fine, but when expanding a folder, the size does not updated. Would be nice if it updated the size to have as many rows as need (up to some max).
This is on latest git, not sure if that is dev or stable.
#1 Updated by Stephan Pleines over 5 years ago
GtkWidget *sw2 = gtk_scrolled_window_new(NULL, NULL);
d->sw2 = GTK_SCROLLED_WINDOW(sw2);
+ gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(sw2), 300);
Proper way might be: Count the number of lines in the folder tree, set window height to min(fixed number, number of lines * height of line), but I haven't figured that out yet.