fix Issue on setViewDimension when window is resized. #34