viewport fix after platform

fixes #1605