clutter-box-layout: Use floats and assert on denormal numbers
distribute_natural_allocation expects an input >= 0 of type
get_preferred_size_for_opposite_orientation it is used with an unchecked
size of type
gfloat, which in case it is
passed on in the macro
MAX (0, size).
when implicitly casted to
triggering the assertion
extra_space >= 0.
The resulting warning in the log is counter intuitive and not very helpful.
distribute_natural_allocation instead of
assert on denormal values so we can more easily identify bugs.
Helps to find bugs like gnome-shell#892 (closed)