Depending on the cooler, you won't need any room between the heatsink and the top/side panel of the case. As long as you have good air flow over the cooler itself the clearance will not matter.
...