Commit 3f6a170e

Improve the handling of auto-padding containers and relative sized children

Resolves #34

While working on the sleeping mechanics I stumbled upon a bug in the job context menu, every time the number of child elements was even the calculation of the height went berserk.
This was caused by what can be described as a feedback loop, as the elements are relatively sized depending on the padding of the parent element while the also automatically calculated padding depends on the size of the child elements.. something which happens to work for odd, but not even cases due to some quirks in the implementation.
Needless to say, the approach here was changed and all cases should work now.

A little before and after shot

Leave a Reply

Your email address will not be published. Required fields are marked *