Use getHiddenDimensions for domWidth

When the window resizes use getHiddenDimensions to get the domWidth
incase the element is hidden.

Also modify getHiddenDimensions to only change the display property to
blank.