get width from computedStyle if it is not available.