fix bug in ie8- when get width or height