beat them severely with big heavy objects
of course that was a joke peoples.
It sounds like you did the only thing possible by just leaving her. I'm sure you did the normal checks for nappy's, feeding, sickness blah blah blah and as you said his was just a tantrum. She will have to learn that she cannot get her own way that way or every time she wants anything she will throw a full blown tantrum.
The other thing I would suggest, which I'm sure you already know, is to pay her lots of attention when she is behaving well, lots of hugs, kisses, talking to her and telling her how good she is. If she starts misbehaving, ignore her, if she gets worse put her in her drib. She is a very bright girl she will very soon get the hang of it. If she dosn't figure this out now I would hate to be around when she hits the terrible twos, bc that is when tantrum throwing in some kids becomes an art form.
I used to tell mine, "feel free to have a tantrum but I'll just put you in your room until you are finished so nobody disturbs you" then I would put them in their room and if nessecary hold the doorknob so they couldn't get out. (If out I would put them in the car seat in the car and stay outside until they finished)
Kids arn't stupid, they very quickly realise throwing a tantrum with no audience is no fun LOL