Resizable viewport implementation.