Do nothing when  is same width as window
Added test to make sure nothing happens with window width === element width.