IE9 fix for percentage measures

getStyle doesn't work very well with percetnage measures in IE9. Use the method getDimensions instead fix those problems