fix stacklayout size_hint calculations to include spacing if necessary
better algorithm.
Merge pull request #2653 from kivy/fix_stacklayout_size_hint

Fix stacklayout size hint