v4 Resize: fixed width/height detection to bring it in line with css media queries