Previoous code would simply epic fail in complex cases mixing horizontal and vertical layouts,
especially 'column-major' ones.
This ones tries to be more generic and robust.
Note that it's roughly 50% slower than previous code - but remains acceptable imho.
DISCLAIMER
Tortured Dimensions panel of Scene buttons to have a really complex aligned layout.
Those changes (and related ones in interface_template.c) are obviously not aimed at
master, they are only here to provide nice dirty test case.
Same goes for debug prints and switch with old align code, all this is to be cleaned up in
final version of the patch!
Old algorithm with stressing layout:
New algorithm with exact same stressing layout:


