Set contentHeight or contentWidth to UI.SIZE if layout is 'horizontal' or 'vertical'
Addressed comments in Pull Request
Merge pull request #41 from pec1985/timob-13877

Fix contentHeight and contentWidth