Fixed Infinite Loop

Fixed infinite loop in ViewBox when element has a percentage
width/height.