v4 Resize: fixed width/height detection to bring it in line with css med...

...ia queries