
This is another straight port from Shell.GenericContainer. The important thing to notice is that the calculation is broken if the StThemeNode helpers (adjust_preferred_* and adjust_for_*) aren't used. The downside of this patch is that it removed the skip_paint from the thumbnails. Keeping it would add an unecessarily large amount of code. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/153