I guess I'm not the only one who gets these. Standing has been the only solution that's worked for me.
I'll give your method a try next time.
I've also heard bananas (potassium) help. I think there's something to it; I do seem to get a lot fewer of these cramps if I have one with breakfast every day. Unfortunately bananas are bad luck and not allowed on a boat, so when I'm underway for any length of time I tend to get more cramps.
EDIT: Ken beat me to it on the banana thing. I'm not on any meds.
There's not enough potassium in bananas to make a difference. You'd have to eat a lot of them. They're not like oranges where one orange supplies about 100% of your daily needs. A banana supplies about 10%. So if you're deficient enough in potassium to be getting cramps, 10% isn't likely going to matter