Getting a cramp in my leg

I got a cramp in my left calf of leg when I was sleeping. It was overly painful, I had vocalized hurt.

When I was a child I often got a cramp in my calf of leg during sleeping. I hated the painful sensation.

It seems that the cause getting cramp in calf of leg is lack calcium and magnesium, easiest intake of calcium and magnesium is yogurt.

I eat yogurt every morning but I get a cramp in my calf of leg. Why is that?