re-enable checking for portrait on window resize, closes #1265