Resize viewport if it is undersized