fix #13198 - Add new flow layout that does the right height computation (patch by michael2402, modified) - gsoc-core