Extra categories box does not lay out correctly depending on the language
Submitted by Rafal Luzynski
Link to original bug (#785620)
Description
Created attachment 356626 Screenshot in Greek and Portuguese showing the problem
The idea to split the categories box in the overview page into two containers (flowbox_categories and flowbox_categories2) does not work as good as we'd like it to work. Depending on the language, if the names of categories are long the two boxes lay out their components independently while they should be synchronized. The problem appears in few languages but it may appear in any language depending on the font size (if it is large enough) or the screen size (if it is small enough or in vertical orientation).
How to reproduce:
killall gnome-software LC_ALL=pt_BR.utf8 gnome-software
Right click the title bar → Unmaximize Expand the extra categories resize the window to make it small enough
Also see the screenshot for Greek and Portuguese.
Solution: I was talking about it to Jakub and he says that this is rather unlikely situation when the user resizes the window to this small size. In that case we can sacrifice some visible categories. Now they are 6 displayed by default, organized in 3 columns and 2 rows. If the window is too small we can display only 4 categories, organizing them in 2 rows and 2 columns to make sure the hidden extra categories will fit when they are displayed.
Probably we need a custom flowbox which contains all categories but shows only few of them.
Attachment 356626, "Screenshot in Greek and Portuguese showing the problem":