Fixed Infinite Loop

Fixed infinite loop in ViewBox when element has a percentage
width/height.
Merge pull request #216 from shabegger/master

Fixed Infinite Loop