latch adjustment

I just replaced the gasket on my dishwahser. Since it it new and thicker than the old one the door will not latch. How do I adjust the latch so it will catch?