Helper method when you want to set compression/hugging constraint at same time.