calculate size of items depending on view bounds

Signed-off-by: Ruben Mendez <ruben.mendez@gmail.com>
Merge pull request #9 from minube/features/autocalculatelayout

calculate size of items depending on view bounds