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

TIMOB 13877 back port