IE9 Fix

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