fixed condition to get the viewport size