Vieport resize fix from refactoring map